Only lock auto commands if pattern is used in bot list servers

This commit is contained in:
Dragon Fire
2020-04-11 16:40:52 -04:00
parent 3e0453ac26
commit 41d5bef8b7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ module.exports = class AutoReplyCommand extends Command {
}
run(msg, args, fromPattern) {
if (msg.guild && this.client.botListGuilds.includes(msg.guild.id)) return null;
if (msg.guild && this.client.botListGuilds.includes(msg.guild.id) && fromPattern) return null;
return this.reply ? msg.reply(this.generateText(fromPattern)) : msg.say(this.generateText(fromPattern));
}