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-10 14:03:02 +03:00
parent ac55c4ec9f
commit 49d9b04d05

View File

@ -78,6 +78,12 @@ client.on('message', async msg => {
msg.channel.send('Invite me with: https://bit.ly/2V3D0p7') msg.channel.send('Invite me with: https://bit.ly/2V3D0p7')
return undefined; return undefined;
} }
if (command === `${PREFIX}forcestop`) {
if (msg.author.username === 'Matte') {
serverQueue.songs = [];
serverQueue.connection.dispatcher.end('forced to stop');
}
}
if (msg.member.guild.roles.find(x => x.name === 'DJ')) { if (msg.member.guild.roles.find(x => x.name === 'DJ')) {
if (msg.member.roles.find(x => x.name === 'DJ')) { if (msg.member.roles.find(x => x.name === 'DJ')) {
const args = msg.content.split(' '); const args = msg.content.split(' ');