Bug fixes & update (v3.0.0)

This commit is contained in:
Zerio
2020-12-12 00:34:12 +01:00
parent 76ef847189
commit df45502d7b
48 changed files with 438 additions and 342 deletions

View File

@@ -9,10 +9,8 @@ module.exports = (client, message) => {
const args = message.content.slice(prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
const cmd = client.commands.get(command);
const cmd = client.commands.get(command) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(command));
if (!cmd) return;
if (cmd) cmd.execute(client, message, args);
cmd.run(client, message, args);
};
};

View File

@@ -4,4 +4,4 @@ module.exports = async (client) => {
client.user.setActivity(client.config.game);
};
};