cspy fix kitsune real

This commit is contained in:
ChomeNS 2022-11-03 19:46:21 +07:00
parent ce309fc371
commit fc560e157a

View file

@ -47,6 +47,15 @@ function inject(bot) {
const message = raw.split('> ')[1];
bot.emit('message', username, message, packet.sender);
} else if (raw.match(/§.*§b: §b\/.*/g)) {
const username = raw.split('§b: §b')[0];
const command = raw.split('§b: §b')[1];
bot.emit('cspy', username, command);
} else if (raw.match(/§.*§e: §e\/.*/g)) {
const username = raw.split('§e: §e')[0];
const command = raw.split('§e: §e')[1];
bot.emit('cspy', username, command);
} else if (raw.match(/§.*§b: \/.*/g)) {
const username = raw.split('§b: ')[0];
const command = raw.split('§b: ')[1];