mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-03-25 11:30:25 -04:00
s
This commit is contained in:
parent
e578a494c1
commit
281369690d
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ 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.playersAddedPlayers[usernameraw];
|
||||
const username = bot.getplayerusername[senderr];
|
||||
const sender = bot.options.host === 'sus.shhnowisnottheti.me' ? senderr : 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);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue