This commit is contained in:
ChomeNS 2022-08-14 17:02:45 +07:00
parent 99845728e5
commit c9d1b2414e

View file

@ -47,7 +47,8 @@ function inject(bot, dcclient) {
// try catch cuz TypeError: Cannot read properties of undefined (reading 'replace')
try {
const usernameraw = username.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
var username = bot.getplayerusername[bot.playersAddedPlayers[usernameraw]/* sender */];
var sender = bot.playersAddedPlayers[usernameraw]
var username = bot.getplayerusername[usernameraw];
var message = message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
bot.command_handler.run(username, usernameraw, message, sender);
} catch (e) {