From 2ac9ff378e20ecbfd45e0b45a4e66bd7f15a6f6d Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Fri, 16 Dec 2022 16:58:07 +0700 Subject: [PATCH] another command handler fix --- plugins/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/commands.js b/plugins/commands.js index 071645e..cc7d7f4 100644 --- a/plugins/commands.js +++ b/plugins/commands.js @@ -89,7 +89,7 @@ function inject (bot, dcclient, config) { const username = _username.replace(/§.?/g, '') const message = _message.replace(/§.?/g, '') const sender = bot.playersAddedPlayers[username] - bot.command_handler.run(username, username, message, sender, channeldc, bot.hash, bot.ownerHash, username) + bot.command_handler.run(username, message, sender, channeldc, bot.hash, bot.ownerHash, username) }) function handleDiscordMessages (message) { try { @@ -98,7 +98,7 @@ function inject (bot, dcclient, config) { // only receive messages in SPECIFIC channel if (message.channel.id !== channeldc.id) return if (!message.content.startsWith(config.discord.prefix)) return - bot.command_handler.main(config.discord.prefix, message.member.displayName, message.member.displayName, message, 'no sender for discord', channeldc) + bot.command_handler.main(config.discord.prefix, message.member.displayName, message, 'no sender for discord', channeldc) } catch (e) { return };