1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 02:00:20 +00:00
This commit is contained in:
MatteZ02 2019-12-05 15:17:17 +02:00
commit 60b9fc6b9b
2 changed files with 0 additions and 5 deletions

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!');
}
}
};

View File

@ -7,7 +7,6 @@ module.exports = {
async execute(message, args, client, Discord, prefix) {
const serverQueue = client.queue.get(message.guild.id);
if (!serverQueue) return message.channel.send(':x: There is nothing playing.');
if (!serverQueue.playing) return message.channel.send(':x: There is nothing playing.');
if (args[1]) {
if (isNaN(args[1])) return msg.channel.send(':x: I\'m sorry, But you need to enter a valid __number__.');
}