Allow users to be mentioned in botMentionResponse
parent
bb7e9169a2
commit
508b78fce2
|
@ -69,7 +69,7 @@ These go in `config.json`. See also `config.example.json`.
|
||||||
|allowUserClose|false|If set to true, users can use the close command to close threads by themselves from their DMs with the bot|
|
|allowUserClose|false|If set to true, users can use the close command to close threads by themselves from their DMs with the bot|
|
||||||
|alwaysReplyAnon|false|If `alwaysReply` is set to true, this option controls whether the auto-reply is anonymous|
|
|alwaysReplyAnon|false|If `alwaysReply` is set to true, this option controls whether the auto-reply is anonymous|
|
||||||
|alwaysReply|false|If set to true, all messages in modmail threads will be relayed back to the user, even ones without `!r`|
|
|alwaysReply|false|If set to true, all messages in modmail threads will be relayed back to the user, even ones without `!r`|
|
||||||
|botMentionResponse|None|If set, the bot auto-responds to bot mentions with this message|
|
|botMentionResponse|None|If set, the bot auto-responds to bot mentions with this message. Allows `{userMention}` to be added to mention the user who mentioned the bot.|
|
||||||
|closeMessage|None|The bot's message to the user when the thread is closed|
|
|closeMessage|None|The bot's message to the user when the thread is closed|
|
||||||
|enableGreeting|false|Set to true to send a welcome message to new main guild members. Requires `mainGuildId` to be set.|
|
|enableGreeting|false|Set to true to send a welcome message to new main guild members. Requires `mainGuildId` to be set.|
|
||||||
|greetingAttachment|None|Path to an image or other attachment to send along with the greeting|
|
|greetingAttachment|None|Path to an image or other attachment to send along with the greeting|
|
||||||
|
|
|
@ -175,7 +175,7 @@ bot.on('messageCreate', async msg => {
|
||||||
|
|
||||||
// Send an auto-response to the mention, if enabled
|
// Send an auto-response to the mention, if enabled
|
||||||
if (config.botMentionResponse) {
|
if (config.botMentionResponse) {
|
||||||
bot.createMessage(msg.channel.id, config.botMentionResponse);
|
bot.createMessage(msg.channel.id, config.botMentionResponse.replace(/{userMention}/g, `<@${msg.author.id}>`));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue