mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Only lock auto commands if pattern is used in bot list servers
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user