From 4fb86fade4a1d126c9b12a2c0f7f179d3de9fbbd Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Tue, 30 Jul 2019 16:46:35 +0300 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d5c5775f..6cc5dad8 100644 --- a/index.js +++ b/index.js @@ -328,7 +328,7 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")} serverQueue.connection.dispatcher.end('Stop'); } if (msg.content.startsWith('>eval')) { - if (eval(args) === process.env.BOT_TOKEN || eval(args === process.env.API_KEY)) return msg.channel.send(':x: I\'m sorry, The token and api key is private!') + if (eval(args) === process.env.BOT_TOKEN || eval(args) === process.env.API_KEY) return msg.channel.send(':x: I\'m sorry, The token and api key is private!') const args = msg.content.slice(6) msg.channel.send(eval(args)); }