From 668b6de3320e4bccf51945f6a715a399dc47f4d4 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Tue, 30 Jul 2019 16:10:29 +0300 Subject: [PATCH] Update index.js --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 30334319..e27f7be1 100644 --- a/index.js +++ b/index.js @@ -18,13 +18,14 @@ client.on('message', async msg => { } if (msg.content.startsWith('>')) { if (msg.author.id !== '360363051792203779') return msg.channel.send(':x: Developement commands are not avaiable for public usage!') - if (msg.author.id === '360363051792203779') { + if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') { if (msg.content === '>devstop') { serverQueue.songs = []; serverQueue.connection.dispatcher.end('Stop'); } if (msg.content.startsWith('>eval')) { - msg.channel.send(eval(args.join(' '))); + const args = msg.content.slice(6) + msg.channel.send(eval(args)); } } }