From 41d5bef8b7741aabcf4839ad8c1823e6033f359f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 11 Apr 2020 16:40:52 -0400 Subject: [PATCH] Only lock auto commands if pattern is used in bot list servers --- package.json | 2 +- structures/commands/AutoReply.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e575e747..ca61f3f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "112.20.4", + "version": "112.20.5", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/structures/commands/AutoReply.js b/structures/commands/AutoReply.js index a9daa31e..28b319e7 100644 --- a/structures/commands/AutoReply.js +++ b/structures/commands/AutoReply.js @@ -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)); }