From dfa20930264d1cff3a6d67e4fbb894a6e8a13640 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 11 Mar 2020 17:37:45 +0200 Subject: [PATCH] Update msg.js --- events/msg.js | 1 + 1 file changed, 1 insertion(+) diff --git a/events/msg.js b/events/msg.js index 4222a6ab..61941894 100644 --- a/events/msg.js +++ b/events/msg.js @@ -18,6 +18,7 @@ module.exports = { if (!msg.content.startsWith(prefix)) return; if (!args[0]) return; const commandName = args[0].toLowerCase(); + if (commandName === "none") return; 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!');