revert change

This commit is contained in:
ChomeNS 2022-09-11 11:26:58 +07:00
parent 82b8a30cfb
commit 9b1b1e42cc

View file

@ -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);