Skip to content

Commit 47febae

Browse files
committed
improve suggestion for archived thread due to inactivity
1 parent 1d1f09a commit 47febae

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadAutoArchiver.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ private void autoArchiveForThread(ThreadChannel threadChannel, Instant archiveAf
7777
if (shouldBeArchived(threadChannel, archiveAfterMoment)) {
7878
logger.debug("Auto archiving help thread {}", threadChannel.getId());
7979

80-
MessageEmbed embed = new EmbedBuilder().setDescription("""
81-
Closed the thread due to inactivity.
82-
83-
If your question was not resolved yet, feel free to just post a message \
84-
to reopen it, or create a new thread. But try to improve the quality of \
85-
your question to make it easier to help you 👍""")
80+
MessageEmbed embed = new EmbedBuilder().setDescription(
81+
"""
82+
Closed the thread due to inactivity.
83+
84+
If your question was not resolved yet, feel free to just post a message \
85+
to reopen it, or create a new thread. But try to **improve the quality** of \
86+
your question by adding more information such as relevant **code snippets**, **errors**,\
87+
expected **results**, if required steps to reproduce the error for more precise help 👍""")
8688
.setColor(HelpSystemHelper.AMBIENT_COLOR)
8789
.build();
8890

0 commit comments

Comments
 (0)