mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 01:20:48 +00:00
to js
This commit is contained in:
21
src/commands/loop.js
Normal file
21
src/commands/loop.js
Normal file
@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
name: 'loop',
|
||||
alias: 'none',
|
||||
usage: '',
|
||||
description: 'loop the queue.',
|
||||
onlyDev: false,
|
||||
permission: 'MANAGE_MESSAGES',
|
||||
category: 'music',
|
||||
async execute(msg, args, client, Discord, command) {
|
||||
const queue = client.queue.get(msg.guild.id);
|
||||
if (client.funcs.check(client, msg, command)) {
|
||||
if (!queue.looping) {
|
||||
queue.looping = true;
|
||||
msg.channel.send(client.messages.looping);
|
||||
} else {
|
||||
queue.looping = false;
|
||||
msg.channel.send(client.messages.noLooping);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user