From 1b36d9b7f5826547351a60fca9a526a686c12070 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Tue, 18 Jun 2019 18:22:29 +0300 Subject: [PATCH] Update index.js --- index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 69a82cbb..b5a6674d 100644 --- a/index.js +++ b/index.js @@ -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!')