Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = (bot, message) => {
- if (message.author.bot) return;
- if (message.content.indexOf(bot.config.prefix) !== 0) return;
- const args = message.content.slice(bot.config.prefix.length).trim().split(/ +/g);
- const command = args.shift().toLowerCase();
- const cmd = bot.commands.get(command);
- if (!cmd) return;
- cmd.run(bot, message, args);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement