From 7057a75ab8f7eaf5e8c25d9e324e055aa22b213d Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Mon, 6 Mar 2023 08:48:52 +0700 Subject: [PATCH] a --- plugins/commands.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/commands.js b/plugins/commands.js index 6c11660..3ee2d53 100644 --- a/plugins/commands.js +++ b/plugins/commands.js @@ -10,7 +10,7 @@ function inject (bot, dcclient, config) { bot.command_handler.commands = await loadFiles(path.join(__dirname, config.commandsDir)) } bot.command_handler.reload() - bot.command_handler.main = function (prefix, username, message, sender, channeldc, hash, ownerhash, selector, proxy) { + bot.command_handler.main = function (prefix, username, message, sender, channeldc, hash, ownerhash, selector) { bot.command_handler.reload() let raw let command @@ -41,7 +41,7 @@ function inject (bot, dcclient, config) { if (!command.discordExecute) throw new Error('This command is not yet supported on discord!') command.discordExecute(bot, username, sender, prefix, args, channeldc, message, config) } else { - command.execute(bot, username, sender, prefix, args, config, hash, ownerhash, selector, proxy) + command.execute(bot, username, sender, prefix, args, config, hash, ownerhash, selector) } } catch (e) { if (prefix === config.discord.prefix) { @@ -55,10 +55,10 @@ function inject (bot, dcclient, config) { } } } - bot.command_handler.run = function (username, message, sender, channeldc, hash, ownerhash, selector = '@a', proxy) { + bot.command_handler.run = function (username, message, sender, channeldc, hash, ownerhash, selector = '@a') { for (const prefix of config.prefixes) { if (!message.startsWith(prefix)) continue - bot.command_handler.main(prefix, username, message, sender, channeldc, hash, ownerhash, selector, proxy) + bot.command_handler.main(prefix, username, message, sender, channeldc, hash, ownerhash, selector) } } bot.on('chat', async (_username, _message) => {