From edfcc6f474045be3c06b75419384c7d1cc308ae1 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Tue, 3 Mar 2020 22:25:12 +0200 Subject: [PATCH] u --- commands/help.js | 2 +- events/msg.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/help.js b/commands/help.js index c3c2f077..6a39d073 100644 --- a/commands/help.js +++ b/commands/help.js @@ -23,7 +23,7 @@ module.exports = { } let commands = ''; for (let i = 0; i < categories.length; i++) { - commands += `**» ${categories[i].toUpperCase()}**\n${client.commands.filter(x => x.category === categories[i] && !x.omitFromHelp /*&& !x.onlyDev*/).map(x => `\`${x.name}\``).join(', ')}\n`; + commands += `**» ${categories[i].toUpperCase()}**\n${client.commands.filter(x => x.category === categories[i] && !x.omitFromHelp && !x.onlyDev).map(x => `\`${x.name}\``).join(', ')}\n`; } const embed = new Discord.MessageEmbed() .setTitle(`${client.user.username} help:`) diff --git a/events/msg.js b/events/msg.js index b39a9089..4222a6ab 100644 --- a/events/msg.js +++ b/events/msg.js @@ -21,7 +21,7 @@ module.exports = { const command = client.commands.get(commandName) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName)) || client.commandAliases.get(commandName); if (!command && msg.content !== `${prefix}`) return; if (command.onlyDev && msg.author.id !== client.config.devId) return msg.channel.send('<:redx:674263474704220182> You are not allowed to do that!'); - //if (client.config.devMode && msg.member.id !== client.config.devId) return msg.channel.send('<:redx:674263474704220182> Dev mode has been turned on! Commands are only available to developer(s)!'); + if (client.config.devMode && msg.member.id !== client.config.devId) return msg.channel.send('<:redx:674263474704220182> Dev mode has been turned on! Commands are only available to developer(s)!'); client.funcs.exe(msg, args, client, Discord, prefix, command); } -} +} \ No newline at end of file