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:
parent
3c8e6ae403
commit
aac527787e
28
index.js
28
index.js
@ -315,26 +315,26 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join("\n")}
|
||||
return msg.channel.send(':x: There is nothing playing.');
|
||||
}
|
||||
}
|
||||
if (msg.content === '-devstop') {
|
||||
if (msg.author.id === '360363051792203779') {
|
||||
serverQueue.songs = [];
|
||||
serverQueue.connection.dispatcher.end('Stop');
|
||||
return
|
||||
}
|
||||
} else if (msg.content.startsWith('-eval')) {
|
||||
if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') {
|
||||
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));
|
||||
return
|
||||
}
|
||||
}
|
||||
if (msg.content === `${PREFIX}`) {
|
||||
return;
|
||||
}
|
||||
msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
|
||||
return;
|
||||
}
|
||||
if (msg.content.startsWith('>')) {
|
||||
if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') {
|
||||
if (msg.content === '>devstop') {
|
||||
serverQueue.songs = [];
|
||||
serverQueue.connection.dispatcher.end('Stop');
|
||||
}
|
||||
if (msg.content.startsWith('>eval')) {
|
||||
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));
|
||||
}
|
||||
return
|
||||
} else return msg.channel.send(':x: Developement commands are not avaiable for public usage!');
|
||||
}
|
||||
});
|
||||
|
||||
async function handleVideo(video, msg, voiceChannel, playlist = false) {
|
||||
|
Loading…
Reference in New Issue
Block a user