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

Update index.js

This commit is contained in:
MatteZ02 2019-07-31 15:03:33 +03:00
parent fac41faf9e
commit e039afb074

View File

@ -6,7 +6,7 @@ const PREFIX = ('-')
const client = new Client({ disableEveryone: true });
const youtube = new YouTube(process.env.API_KEY);
const queue = new Map();
client.login(process.env.UIGEHIAGPEW);
client.login(process.env.BOT_TOKEN);
client.on('ready', () => {
client.user.setActivity('-help', { type: 'LISTENING' })
client.user.setStatus('dnd');
@ -192,10 +192,12 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
return
}
} else if (msg.content.startsWith('-eval')) {
if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') {
if (msg.author.id === '360363051792203779') {
const args = msg.content.slice(6)
msg.channel.send(eval(args));
return
} else {
msg.channel.send('The evaluation command is only avaiable for the developers of Musix!')
}
}
if (msg.content === `${PREFIX}`) return;
@ -331,10 +333,12 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
return
}
} else if (msg.content.startsWith('-eval')) {
if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') {
if (msg.author.id === '360363051792203779') {
const args = msg.content.slice(6)
msg.channel.send(eval(args));
return
} else {
msg.channel.send('The evaluation command is only avaiable for the developers of Musix!')
}
}
}