mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
semicolon + ops
This commit is contained in:
parent
c9d1b2414e
commit
de2b62f8b3
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ function inject(bot, dcclient) {
|
||||||
// try catch cuz TypeError: Cannot read properties of undefined (reading 'replace')
|
// try catch cuz TypeError: Cannot read properties of undefined (reading 'replace')
|
||||||
try {
|
try {
|
||||||
const usernameraw = username.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
|
const usernameraw = username.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
|
||||||
var sender = bot.playersAddedPlayers[usernameraw]
|
var sender = bot.playersAddedPlayers[usernameraw];
|
||||||
var username = bot.getplayerusername[usernameraw];
|
var username = bot.getplayerusername[sender];
|
||||||
var message = message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
|
var message = message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
|
||||||
bot.command_handler.run(username, usernameraw, message, sender);
|
bot.command_handler.run(username, usernameraw, message, sender);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue