You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The id of the channel category that contains all open channels.
26
26
*/
27
27
privatelongopenCategoryId;
28
28
29
-
/**
30
-
* The id of the channel category that contains all reserved channels.
31
-
*/
32
-
privatelongreservedCategoryId;
33
-
34
-
/**
35
-
* The id of the channel category where dormant channels are put when they
36
-
* aren't needed in the open category (due to preferred channel count).
37
-
*/
38
-
privatelongdormantCategoryId;
39
-
40
29
/**
41
30
* The id of the helper role.
42
31
*/
@@ -47,79 +36,41 @@ public class HelpConfig extends GuildConfigItem {
47
36
*/
48
37
privatelonghelpPingRoleId;
49
38
50
-
/**
51
-
* The strategy to use when naming help channels. This is only used when
52
-
* {@link HelpConfig#recycleChannels} is set to false.
53
-
*/
54
-
privateStringchannelNamingStrategy = "animal";
55
-
56
-
/**
57
-
* If true, the system will manage a fixed set of help channels which are
58
-
* created in advance. If false, the system will create and remove channels
59
-
* as needed to maintain the {@link HelpConfig#preferredOpenChannelCount}.
60
-
* Note that if this is true, the preferred open channel count is ignored.
61
-
*/
62
-
privatebooleanrecycleChannels = false;
63
-
64
-
/**
65
-
* The string which is shown as the 'topic' for open channels.
66
-
*/
67
-
privateStringopenChannelTopic = "Ask your question here!";
68
-
69
-
/**
70
-
* The message that's sent in a recycled help channel to tell users that it
71
-
* is now open for someone to ask a question.
72
-
*/
73
-
privateStringreopenedChannelMessage = "`✅` **This channel is now available!**\n> This channel is no longer reserved. Feel free to ask your question here!";
74
-
75
39
/**
76
40
* The message that's sent as soon as a user asks a question in an open help
77
41
* channel. This is only sent if it's not null.
78
42
*/
79
-
privateStringreservedChannelMessage = "`⌛` **This channel has been reserved for your question.**\n> Please use `/unreserve` when you\u0027re finished.";
43
+
privateStringreservedChannelMessageTemplate = "`⌛` **This channel has been reserved for your question.**\n> Please use `/close` when you're finished.";
80
44
81
45
/**
82
-
* The message that's sent in a recycled help channel to tell users that it
46
+
* The message that's sent in a post to tell users that it
83
47
* is now marked as dormant and no more messages can be sent.
84
48
*/
85
-
privateStringdormantChannelMessage = "`\uD83D\uDCA4` **Channel marked as dormant**\n> It is no longer possible to send messages in this channel until it becomes available again.\n> If your question was not answered yet, feel free to claim a new available help channel.";
49
+
privateStringdormantChannelMessageTemplate = "`\uD83D\uDCA4` **Channel marked as dormant**\n> This post has been inactive for over %s minutes. It is no longer possible to send messages in this channel.\n> If your question was not answered yet, feel free to create a new post.";
86
50
87
51
/**
88
-
* The number of open help channels to maintain. If fewer than this many
89
-
* open channels exist, the system will try to create more.
52
+
* The message that's sent when a user unreserved a channel where other users
53
+
* participated in.
90
54
*/
91
-
privateintpreferredOpenChannelCount = 3;
55
+
privateStringhelpThanksMessageTemplate = "Before your post will be closed, would you like to express your gratitude to any of the people who helped you? When you're done, click **I'm done here. Close this post!**.";
92
56
93
57
/**
94
-
* A list of successive timeouts (in minutes) to use when checking to see if
95
-
* a help channel is still active. The bot waits X minutes since the last
96
-
* human message before sending an activity check, and waits
58
+
* The number of open help channels to maintain. If fewer than this many
59
+
* open channels exist, the system will try to create more.
0 commit comments