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

Update index.js

This commit is contained in:
MatteZ02 2019-07-30 16:48:27 +03:00
parent 4fb86fade4
commit 3c8e6ae403

View File

@ -328,8 +328,8 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
serverQueue.connection.dispatcher.end('Stop'); serverQueue.connection.dispatcher.end('Stop');
} }
if (msg.content.startsWith('>eval')) { 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!')
const args = msg.content.slice(6) const args = msg.content.slice(6)
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!');
msg.channel.send(eval(args)); msg.channel.send(eval(args));
} }
return return