fix agfen??

This commit is contained in:
business-goose 2021-03-26 16:46:46 +00:00
parent 902c8d51f9
commit ed6a3d8ff5

View file

@ -21,7 +21,7 @@ module.exports = {
} else if (msg.match(/<.*> .*/g)) { } else if (msg.match(/<.*> .*/g)) {
if(data.sender === '00000000-0000-0000-0000-000000000000') return; if(data.sender === '00000000-0000-0000-0000-000000000000') return;
let username = msg.substr(3).split(">")[0]; let username = msg.substr(3).split(">")[0];
let message = msg.split("§r> §r")[1]; let message = msg.split("> §r").replace(/<.*>/gm,"<$&§r>")[1];
client.emit("message", username, message, data.sender); client.emit("message", username, message, data.sender);
} else if (msg.match(/.* .*§r: §.*/g)) { } else if (msg.match(/.* .*§r: §.*/g)) {
if(data.sender === '00000000-0000-0000-0000-000000000000') return; if(data.sender === '00000000-0000-0000-0000-000000000000') return;