Add ability to disable auto-reply commands in bot lists

This commit is contained in:
Dragon Fire
2020-04-11 11:15:27 -04:00
parent 6d02ac1dca
commit 6169f79125
12 changed files with 50 additions and 21 deletions
+1
View File
@@ -17,6 +17,7 @@ module.exports = class UnknownCommandCommand extends Command {
run(msg) {
if (msg.channel.type !== 'text') return null;
if (this.client.botListGuilds.includes(msg.guild.id)) return null;
const commands = this.makeCommandArray(this.client.isOwner(msg.author), msg.channel.nsfw);
const command = msg.content.match(this.client.dispatcher._commandPatterns[this.client.commandPrefix]);
const str = command ? command[2] : msg.content.split(' ')[0];