From cd8082a890b8ff4d0f1b558cd26a4688de246d87 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Fri, 26 Aug 2022 20:48:47 +0700 Subject: [PATCH] fixed idk11!1!! --- plugins/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chat.js b/plugins/chat.js index 658fdde..89ce8f8 100644 --- a/plugins/chat.js +++ b/plugins/chat.js @@ -30,7 +30,7 @@ function inject(bot) { bot.emit('message', username, message, packet.sender); } else if (raw.match(/.* .*\u203a .*/g)) { // 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]; bot.emit('message', username, message, packet.sender); } else if (raw.match(/<.*§r> .*/g)) {