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 };