semicolon + ops

This commit is contained in:
ChomeNS 2022-08-14 17:19:41 +07:00
parent c9d1b2414e
commit de2b62f8b3

View file

@ -47,8 +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 sender = bot.playersAddedPlayers[usernameraw]
var username = bot.getplayerusername[usernameraw];
var sender = bot.playersAddedPlayers[usernameraw];
var username = bot.getplayerusername[sender];
var message = message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
bot.command_handler.run(username, usernameraw, message, sender);
} catch (e) {