mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
cspy fix kitsune real
This commit is contained in:
parent
ce309fc371
commit
fc560e157a
1 changed files with 9 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue