Skip to content

Commit 25c8da3

Browse files
authoredNov 27, 2021
Remove music entirely by default
1 parent 38afb5d commit 25c8da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const YAML = require("yaml");
7070
const commands = YAML.parse(fs.readFileSync("./commands.yml", "utf8"));
7171
let commandDescs = {}
7272
Object.keys(commands).forEach(cmd => {
73-
if(!commands[cmd].hidden) {
73+
if(!commands[cmd].hidden && (process.env.MUSIC_ENABLED.toString() == "true" || commands[cmd].category != "Music")) {
7474
commandDescs[cmd] = {
7575
description: commands[cmd].description,
7676
category: commands[cmd].category
@@ -122,4 +122,4 @@ process.on('SIGTERM', gracefulShutdown);
122122
// e.g. Ctrl + C
123123
process.on('SIGINT', gracefulShutdown);
124124

125-
client.login(process.env.TOKEN); // discord.js connect to discord bot
125+
client.login(process.env.TOKEN); // discord.js connect to discord bot

0 commit comments

Comments
 (0)
Please sign in to comment.