From d65d5aae9e4d1b495ceb0ba01c1eb650071a3377 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Tue, 30 Jul 2019 16:02:25 +0300 Subject: [PATCH] Update index.js --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index f33dc546..30334319 100644 --- a/index.js +++ b/index.js @@ -23,10 +23,7 @@ client.on('message', async msg => { serverQueue.songs = []; serverQueue.connection.dispatcher.end('Stop'); } - if (msg.content === '>url') { - msg.channel.send(`${serverQueue.songs[0].url}`) - } - if (msg.content === '>eval') { + if (msg.content.startsWith('>eval')) { msg.channel.send(eval(args.join(' '))); } }