From 9b1b1e42cc52e9abd03b5249cabf3e13c060001c Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Sun, 11 Sep 2022 11:26:58 +0700 Subject: [PATCH] revert change --- plugins/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands.js b/plugins/commands.js index ae23c54..513c9db 100644 --- a/plugins/commands.js +++ b/plugins/commands.js @@ -49,7 +49,7 @@ function inject(bot, dcclient) { // try catch cuz TypeError: Cannot read properties of undefined (reading 'replace') try { const usernameraw = usernamee.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, ''); - const sender = bot.options.host === 'sus.shhnowisnottheti.me' ? senderr : bot.playersAddedPlayers[usernameraw]; + const sender = bot.playersAddedPlayers[usernameraw]; const username = bot.getplayerusername[sender]; const message = messagee.replace(/§r/g /* /§[a-f0-9rlonmk]/g */, '')/* .replace(/§/g, '')*/; bot.command_handler.run(username, usernameraw, message, sender);