1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-22 14:53:17 +00:00

Update loop.js

This commit is contained in:
Matte 2019-11-27 14:06:24 +02:00 committed by GitHub
parent 5d34e80312
commit dfc360368c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,6 @@ module.exports = {
const permissions = message.channel.permissionsFor(message.author);
const { voiceChannel } = message.member;
if (!serverQueue) return message.channel.send(':x: There is nothing playing.');
if (serverQueue.playing) {
if (message.author.id !== client.config.devId) {
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voice channel as Musix to loop the queue!');
if (client.global.db.guilds[message.guild.id].permissions === true) {
@ -25,8 +24,5 @@ module.exports = {
serverQueue.looping = false;
message.channel.send(':repeat: No longer looping the queue!');
}
} else {
message.channel.send(':x: There is nothing playing!');
}
}
};