mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 18:54:55 -05:00
fixed idk11!1!!
This commit is contained in:
parent
9233285f5d
commit
cd8082a890
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ function inject(bot) {
|
||||||
bot.emit('message', username, message, packet.sender);
|
bot.emit('message', username, message, packet.sender);
|
||||||
} else if (raw.match(/.* .*\u203a .*/g)) {
|
} else if (raw.match(/.* .*\u203a .*/g)) {
|
||||||
// if (packet.sender === '00000000-0000-0000-0000-000000000000') return;
|
// if (packet.sender === '00000000-0000-0000-0000-000000000000') return;
|
||||||
const username = raw.replace(/.*?\[.*?\] /g, '').replace(/\u203a.*/g, '').replace(/§#....../gm, '');
|
const username = raw.replace(/.*?\[.*?\] /g, '').replace(/ \u203a.*/g, '').replace(/§#....../gm, '');
|
||||||
const message = raw.split('\u203a ')[1];
|
const message = raw.split('\u203a ')[1];
|
||||||
bot.emit('message', username, message, packet.sender);
|
bot.emit('message', username, message, packet.sender);
|
||||||
} else if (raw.match(/<.*§r> .*/g)) {
|
} else if (raw.match(/<.*§r> .*/g)) {
|
||||||
|
|
Loading…
Reference in a new issue