threadOnMention -> createThreadOnMention

cshd
Dragory 2020-08-16 18:36:51 +03:00
parent e0aa3a73ae
commit 78a1cc34be
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
3 changed files with 3 additions and 3 deletions

View File

@ -272,7 +272,7 @@ The bot's "Playing" text
**Default:** `on`
If enabled, channel permissions for the thread are synchronized with the category when using `!move`. Requires `allowMove` to be enabled.
#### threadOnMention
#### createThreadOnMention
**Default:** `off`
If enabled, the bot will automatically create a new thread for a user who pings it.

View File

@ -254,7 +254,7 @@
"default": "\uD83D\uDCE8"
},
"threadOnMention": {
"createThreadOnMention": {
"$ref": "#/definitions/customBoolean",
"default": false
},

View File

@ -235,7 +235,7 @@ function initBaseMessageHandlers() {
}
// If configured, automatically open a new thread with a user who has pinged it
if (config.threadOnMention) {
if (config.createThreadOnMention) {
const existingThread = await threads.findOpenThreadByUserId(msg.author.id);
if (! existingThread) {
// Only open a thread if we don't already have one