From d5b8d670648e880c5566dbfb1f0174f73eadee7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 19 Aug 2021 01:52:46 +0300 Subject: [PATCH] Removed message event --- src/client/events/msg.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/client/events/msg.js diff --git a/src/client/events/msg.js b/src/client/events/msg.js deleted file mode 100644 index 05a4ed6..0000000 --- a/src/client/events/msg.js +++ /dev/null @@ -1,28 +0,0 @@ -module.exports = { - name: 'message', - async execute(client, msg, Discord) { - return; - /*if (msg.author.bot || !msg.guild) return; - let prefix = client.config.prefix; - if(msg.mentions.members.first()){ - if(msg.mentions.members.first().user.id === client.user.id){ - prefix = "<@!" + client.user.id + "> "; - } - } - const args = msg.content.slice(prefix.length).split(' '); - 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; - const permissions = msg.channel.permissionsFor(msg.client.user); - if (!permissions.has('EMBED_LINKS')) return msg.channel.send(client.messages.noPermsEmbed); - try { - command.execute(msg, args, client, Discord, command); - } catch (error) { - msg.reply(client.messages.runningCommandFailed); - console.error(error); - }*/ - } -}