Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on('message', async msg =>{
- var prefix = '$';//Prefix
- if (msg.author.bot) return undefined;
- if (!msg.content.startsWith(prefix)) return undefined;
- let args = msg.content.split(' ');
- let command = msg.content.toLowerCase().split(" ")[0];
- command = command.slice(prefix.length)
- if(command === `ping`) {
- let embed = new Discord.RichEmbed()
- .setColor('RANDOM')
- .setTitle("Ping Pong!!")
- .setDescription(`${client.ping} ms`)
- .setFooter(`${msg.author.tag}`);
- msg.delete().catch(O_o=>{})
- msg.channel.send(embed);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement