mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
oh you can just do this
This commit is contained in:
parent
9b1b1e42cc
commit
8427de84c0
1 changed files with 1 additions and 1 deletions
|
@ -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.playersAddedPlayers[usernameraw];
|
||||
const sender = bot.options.host === 'sus.shhnowisnottheti.me' && senderr !== '00000000-0000-0000-0000-000000000000' ? 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);
|
||||
|
|
Loading…
Reference in a new issue