Advertisement
Guest User

new

a guest
Jul 18th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. try {
  2. if(!message.content.startsWith(prefix)) return;
  3. let commandfile = bot.commands.get(cmd.slice(prefix.length)) || bot.commands.get(bot.aliases.get(cmd.slice(prefix.length)))
  4. console.log(commandfile);
  5. if (commandfile) commandfile.run(bot, message, args)
  6. } catch (error) {
  7. console.error(error);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement