1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 01:21:56 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-06-18 18:22:29 +03:00
parent 2e2f7c2e9a
commit 1b36d9b7f5

View File

@ -49,10 +49,13 @@ client.on('message', async msg => {
d.d('d')
}
}
if (msg.content === '!ping') {
msg.channel.send(`Current ping: ${client.ping}`)
if (msg.content === `${PREFIX}ping`) {
msg.channel.send(`My current ping is ${client.ping}`)
return;
}
if (msg.content.toUpperCase().startsWith(`MUSIX`)) {
msg.channel.send('-help to see my commands.')
}
if (msg.content === `${PREFIX}help`) {
const embed = new Discord.RichEmbed()
.setTitle('Commands for Musix!')