diff --git a/util/chat.js b/util/chat.js index f0657a3..0ee0f0d 100644 --- a/util/chat.js +++ b/util/chat.js @@ -57,14 +57,9 @@ function parsePlayerMessages(message, packet, bot) { } else if (raw.match(/.* .*\u00BB .*/g)) { const username = raw.replace(/.*?\[.*?\] /g, '').replace(/\u00BB.*/g, '').replace(/§#....../gm, '').split(' ')[0]; const message = raw.split('\u00BB ')[1].substring(2); - bot.emit('message', username, message, packet.sender); - } else if (raw.match(/<.*§r> .*/g)) { - const username = raw.substring(3).split('§r>')[0]; - const message = raw.split('§r> ')[1]; - bot.emit('message', username, message, packet.sender); } else if (raw.match(/<.*> .*/g)) { - const username = raw.substring(3).split('>')[0]; + const username = raw.substring(1).split('>')[0]; const message = raw.split('> ')[1]; bot.emit('message', username, message, packet.sender);