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
-
*/
27
-
privatelongopenCategoryId;
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;
22
+
privatelonghelpForumChannelId = 0;
39
23
40
24
/**
41
25
* The id of the helper role.
@@ -47,89 +31,34 @@ public class HelpConfig extends GuildConfigItem {
47
31
*/
48
32
privatelonghelpPingRoleId;
49
33
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
34
/**
76
35
* The message that's sent as soon as a user asks a question in an open help
77
36
* channel. This is only sent if it's not null.
78
37
*/
79
-
privateStringreservedChannelMessage = "`⌛` **This channel has been reserved for your question.**\n> Please use `/unreserve` when you\u0027re finished.";
38
+
privateStringreservedChannelMessageTemplate = "`⌛` **This post has been reserved for your question.**\n> Hey %s! Please use `/close` or the `Close Post` button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after %s minutes of inactivity.\n\n**TIP:** Narrow down your issue to __simple__ and __precise__ questions to maximize the chance that others will reply in here.";
80
39
81
40
/**
82
-
* The message that's sent in a recycled help channel to tell users that it
41
+
* The message that's sent in a post to tell users that it
83
42
* is now marked as dormant and no more messages can be sent.
84
43
*/
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.";
44
+
privateStringdormantChannelMessageTemplate = "`\uD83D\uDCA4` **Post marked as dormant**\n> This post has been inactive for over %s minutes, thus, it has been **archived**.\n> If your question was not answered yet, feel free to re-open this post or create a new one.";
86
45
87
46
/**
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.
47
+
* The message that's sent when a user unreserved a channel where other users
48
+
* participated in.
90
49
*/
91
-
privateintpreferredOpenChannelCount = 3;
92
-
93
-
/**
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
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!**.";
99
51
100
52
/**
101
53
* The number of minutes of inactivity before a channel is considered inactive.
102
54
*/
103
-
privateintinactivityTimeoutMinutes = 30;
104
-
105
-
/**
106
-
* The number of minutes to wait before closing an inactive channel. An
107
-
* inactive channel is one in which the most recent message is an unanswered
108
-
* activity check that was sent by this bot.
109
-
*/
110
-
privateintremoveInactiveTimeoutMinutes = 60;
55
+
privateintinactivityTimeoutMinutes = 300;
111
56
112
57
/**
113
58
* The number of minutes to wait before closing a channel waiting for a response
114
59
* to a thanks question.
115
60
*/
116
-
privateintremoveThanksTimeoutMinutes = 15;
117
-
118
-
/**
119
-
* The number of seconds to wait between each help channel update check.
120
-
*/
121
-
privatelongupdateIntervalSeconds = 60;
122
-
123
-
/**
124
-
* The number of channels which can be reserved by a single user at any time.
125
-
*/
126
-
privateintmaxReservedChannelsPerUser = 3;
127
-
128
-
/**
129
-
* The message which is sent to users who aren't allowed to reserve a help
130
-
* channel.
131
-
*/
132
-
privateStringreservationNotAllowedMessage = "You are not allowed to reserve this help channel. Please try again later.";
61
+
privateintremoveThanksTimeoutMinutes = 10;
133
62
134
63
/**
135
64
* How often users may use the /help-ping command.
@@ -176,33 +105,15 @@ public class HelpConfig extends GuildConfigItem {
0 commit comments