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:
parent
d65d5aae9e
commit
668b6de332
5
index.js
5
index.js
@ -18,13 +18,14 @@ client.on('message', async msg => {
|
|||||||
}
|
}
|
||||||
if (msg.content.startsWith('>')) {
|
if (msg.content.startsWith('>')) {
|
||||||
if (msg.author.id !== '360363051792203779') return msg.channel.send(':x: Developement commands are not avaiable for public usage!')
|
if (msg.author.id !== '360363051792203779') return msg.channel.send(':x: Developement commands are not avaiable for public usage!')
|
||||||
if (msg.author.id === '360363051792203779') {
|
if (msg.author.id === '360363051792203779' || msg.author.id === '384002606621655040') {
|
||||||
if (msg.content === '>devstop') {
|
if (msg.content === '>devstop') {
|
||||||
serverQueue.songs = [];
|
serverQueue.songs = [];
|
||||||
serverQueue.connection.dispatcher.end('Stop');
|
serverQueue.connection.dispatcher.end('Stop');
|
||||||
}
|
}
|
||||||
if (msg.content.startsWith('>eval')) {
|
if (msg.content.startsWith('>eval')) {
|
||||||
msg.channel.send(eval(args.join(' ')));
|
const args = msg.content.slice(6)
|
||||||
|
msg.channel.send(eval(args));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user