mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
DBL is total garbage
This commit is contained in:
@@ -34,10 +34,6 @@ module.exports = class HelpCommand extends Command {
|
||||
const commands = group.commands.filter(cmd => {
|
||||
if (owner) return true;
|
||||
if (cmd.ownerOnly || cmd.hidden) return false;
|
||||
const inBotList = msg.guild && this.client.botListGuilds.includes(msg.guild.id);
|
||||
if (inBotList && cmd instanceof AutoReplyCommand) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
if (!commands.size) continue;
|
||||
|
||||
@@ -17,7 +17,6 @@ module.exports = class UnknownCommandCommand extends Command {
|
||||
|
||||
run(msg) {
|
||||
if (!msg.guild) return null;
|
||||
if (msg.guild && 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];
|
||||
|
||||
Reference in New Issue
Block a user