1
0
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:
MatteZ02 2019-07-10 14:05:38 +03:00
parent 49d9b04d05
commit adb964cef0

View File

@ -82,6 +82,7 @@ client.on('message', async msg => {
if (msg.author.username === 'Matte') { if (msg.author.username === 'Matte') {
serverQueue.songs = []; serverQueue.songs = [];
serverQueue.connection.dispatcher.end('forced to stop'); serverQueue.connection.dispatcher.end('forced to stop');
msg.geoipj
} }
} }
if (msg.member.guild.roles.find(x => x.name === 'DJ')) { if (msg.member.guild.roles.find(x => x.name === 'DJ')) {
@ -193,7 +194,7 @@ ${serverQueue.songs.map(song => `**-** ${song.title}`).join('\n')}
return undefined; return undefined;
} }
if (msg.content === `${PREFIX}`) return; if (msg.content === `${PREFIX}`) return;
var coms = ['-play','-queue','-np','-volume','-pause','-resume','-stop','-skip'] var coms = ['-play','-queue','-np','-volume','-pause','-resume','-stop','-skip','-forcestop']
for (var i = 0; i < coms.length; i++) { for (var i = 0; i < coms.length; i++) {
if (msg.content.includes(coms[i])) { if (msg.content.includes(coms[i])) {
if (!msg.member.roles.find(x => x.name === 'DJ')) { if (!msg.member.roles.find(x => x.name === 'DJ')) {