1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-07-30 16:25:51 +03:00
parent b30d497658
commit 8af2a345d0

View File

@ -23,6 +23,7 @@ client.on('message', async msg => {
serverQueue.connection.dispatcher.end('Stop'); serverQueue.connection.dispatcher.end('Stop');
} }
if (msg.content.startsWith('>eval')) { if (msg.content.startsWith('>eval')) {
if (msg.content === '>eval process.env.BOT_TOKEN' || msg.content === '>eval process.env.API_KEY') return msg.channel.send(':x: OH HELL NO IM NOT GIVING YOU THE API KEY TWAT! :x:')
const args = msg.content.slice(6) const args = msg.content.slice(6)
msg.channel.send(eval(args)); msg.channel.send(eval(args));
} }