mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
r
This commit is contained in:
parent
bed8a6229f
commit
81d5bc1189
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ function inject(bot) {
|
|||
bot._client.on('chat', async (packet) => {
|
||||
try {
|
||||
// const message = parse(packet.message);
|
||||
const parsedMessage = JSON.parse(packet.message);
|
||||
if (parsedMessage.translate === 'advMode.setCommand.success') return;
|
||||
const message = ChatMessage.fromNotch(packet.message);
|
||||
bot.emit('parsed_chat', message, packet);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue