PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.96k stars 904 forks source link

remove default 'chat' event #738

Closed ghost closed 5 years ago

ghost commented 5 years ago

every message from the server is triggering on chat.

I added my custom pattern.

How do I make it use only my custom pattern before the event is emitted?

plexigras commented 5 years ago

you have to remove or change this chat pattern

https://github.com/PrismarineJS/mineflayer/blob/master/lib/plugins/chat.js#L14

also what is your code?

rom1504 commented 5 years ago

indeed just remove the default chat pattern in that array.