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:
26
src/commands/nigthcore.ts
Normal file
26
src/commands/nigthcore.ts
Normal 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);
|
||||
}
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user