1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-22 14:53:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-07-30 16:44:41 +03:00
parent 493df7e240
commit ed5702c964

View File

@ -328,7 +328,7 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
serverQueue.connection.dispatcher.end('Stop');
}
if (msg.content.startsWith('>eval')) {
if (msg.content.includes('BOT_TOKEN') || msg.content.includes('API_KEY')) return msg.channel.send(':x: OH HELL NO IM NOT GIVING YOU THAT! :x:')
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));
}