Merge branch 'experimental' of github.com:Dragory/modmailbot into experimental

master
Dragory 2018-02-24 13:03:02 +02:00
commit f2bfb7d8c9
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ bot.on('messageCreate', async msg => {
// New thread // New thread
if (! thread) { if (! thread) {
// Ignore messages that shouldn't usually open new threads, such as "ok", "thanks", etc. // Ignore messages that shouldn't usually open new threads, such as "ok", "thanks", etc.
if (config.ignoreAccidentalThreads && msg.content && ACCIDENTAL_THREAD_MESSAGES.includes(msg.content.trim())) return; if (config.ignoreAccidentalThreads && msg.content && ACCIDENTAL_THREAD_MESSAGES.includes(msg.content.trim().toLowerCase())) return;
thread = await threads.createNewThreadForUser(msg.author); thread = await threads.createNewThreadForUser(msg.author);
} }