mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
fixed1!1
This commit is contained in:
parent
99845728e5
commit
c9d1b2414e
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue