Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot.on('message', msg => {
- //Prefix
- let prefix = "~"
- // Return
- if (!msg.content.startsWith(prefix)) return;
- // Exit if bot executes command
- if(msg.author.bot) return;
- if(msg.content.startsWith(prefix + 'help')){
- console.log(colors.red(msg.author.username+' Executed ~help'));
- msg.reply('I have sent you a DM with my commands!');
- msg.author.sendMessage('Reply')
- }});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement