1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 04:31:56 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-07-30 16:10:29 +03:00
parent d65d5aae9e
commit 668b6de332

View File

@ -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));
} }
} }
} }