From f94e93281acbd0674ddb91033c8bc8a4bd582b87 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Wed, 1 Mar 2023 13:10:26 +0700 Subject: [PATCH] wrong file oops --- util/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/chat.js b/util/chat.js index 7ec7a53..6fc3b8a 100644 --- a/util/chat.js +++ b/util/chat.js @@ -49,7 +49,7 @@ function parsePlayerMessages (message, packet, bot) { bot.emit('chat', username, message) } else if (raw.match(/.* .*\u00BB .*/g)) { const username = raw.replace(/.*?\[.*?\] /g, '').replace(/\u00BB.*/g, '').replace(/§#....../gm, '').split(' ')[0] - const message = raw.split('\u00BB ').slice(1).join(' ').substring(2) + const message = raw.split('\u00BB ').slice(1).join(' ') bot.emit('chat', username, message) } else if (raw.match(/.* .*> .*/g)) { const username = raw.replace(/.*?\[.*?\] /g, '').replace(/>.*/g, '').replace(/§#....../gm, '').split(' ')[0]