1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-22 21:13:18 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-07-31 09:57:34 +03:00
parent c0651f1ba1
commit 1d36a9d285

View File

@ -194,7 +194,6 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
} else if (msg.content.startsWith('-eval')) { } else if (msg.content.startsWith('-eval')) {
if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') { if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') {
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
} }
@ -334,7 +333,6 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
} else if (msg.content.startsWith('-eval')) { } else if (msg.content.startsWith('-eval')) {
if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') { if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') {
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
} }