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:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "112.20.4",
|
||||
"version": "112.20.5",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -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