Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- if(!message.content.startsWith(prefix)) return;
- let commandfile = bot.commands.get(cmd.slice(prefix.length)) || bot.commands.get(bot.aliases.get(cmd.slice(prefix.length)))
- console.log(commandfile);
- if (commandfile) commandfile.run(bot, message, args)
- } catch (error) {
- console.error(error);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement