Clarify some code comments

master
Miikka Virtanen 2017-07-24 02:23:34 +03:00
parent 3abb376397
commit 1dc21880e2
2 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,7 @@ function formatAttachment(attachment) {
});
}
// "Forward all messages not starting in prefix"
// If the alwaysReply option is set to true, send all messages in modmail threads as replies, unless they start with the prefix
if (config.alwaysReply) {
bot.on('messageCreate', msg => {
if (! msg.channel.guild) return;

View File

@ -3,6 +3,9 @@ const utils = require('./utils');
const jsonDb = require('./jsonDb');
const config = require('../config');
// If the following messages would be used to start a thread, ignore it instead
// This is to prevent accidental threads from e.g. irrelevant replies after the thread was already closed
// or replies to the greeting message
const accidentalThreadMessages = [
'ok',
'okay',