1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-17 04:26:00 +00:00

nigthCore added

This commit is contained in:
MatteZ02
2020-04-08 20:48:57 +03:00
parent 0af2ca1d44
commit 1beb0fa86a
4 changed files with 290 additions and 184 deletions

26
src/commands/nigthcore.ts Normal file
View File

@ -0,0 +1,26 @@
module.exports = {
name: "nigthcore",
alias: "nc",
usage: "<true/false>",
description: "Change nigthcore on/off",
onlyDev: false,
permission: "MANAGE_MESSAGES",
category: "music",
async execute(msg, args, client, Discord, prefix, command) {
const queue = client.queue.get(msg.guild.id);
if (!args[1] && queue)
return msg.channel.send(
`${client.messages.currentNigthCore}**${queue.nigthCore}**`
);
if (client.funcs.check(client, msg, command)) {
if (args[1] === "true") {
queue.nigthCore = true;
} else if (args[1] === "false") {
queue.nigthCore = false;
}
let message;
message = client.messages.nigthCoreApplied.replace("%BOOLEAN%", args[1]);
return msg.channel.send(message);
}
},
};