mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
wrong file oops
This commit is contained in:
parent
30b864b4c6
commit
f94e93281a
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ function parsePlayerMessages (message, packet, bot) {
|
|||
bot.emit('chat', username, message)
|
||||
} else if (raw.match(/.* .*\u00BB .*/g)) {
|
||||
const username = raw.replace(/.*?\[.*?\] /g, '').replace(/\u00BB.*/g, '').replace(/§#....../gm, '').split(' ')[0]
|
||||
const message = raw.split('\u00BB ').slice(1).join(' ').substring(2)
|
||||
const message = raw.split('\u00BB ').slice(1).join(' ')
|
||||
bot.emit('chat', username, message)
|
||||
} else if (raw.match(/.* .*> .*/g)) {
|
||||
const username = raw.replace(/.*?\[.*?\] /g, '').replace(/>.*/g, '').replace(/§#....../gm, '').split(' ')[0]
|
||||
|
|
Loading…
Reference in a new issue