This commit is contained in:
ChomeNS 2022-08-20 15:50:13 +07:00
parent 2034047469
commit 8abb38ae9e

View file

@ -18,7 +18,6 @@ function inject(bot) {
bot.on('parsed_chat', (message, packet) => {
try {
const raw = message.toMotd().substring(0, 32767);
console.log(raw)
if (raw.match(/.* .*§r: §.*/g)) {
// if (packet.sender === '00000000-0000-0000-0000-000000000000') return;
const username = raw.replace(/.*?\[.*?\] /, '').replace(/:.*/g, '').replace(/§#....../gm, '');