Skip to content

why is bot.chatAddPattern deprecated? #1881

Answered by u9g
xMdb asked this question in Q&A
May 1, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

It's not being removed soon, don't worry. The main reason it's deprecated is that we want people to use the new bot.addChatPattern becuase it bot.addChatPattern prefixes all events it emits with a chat: prefix so they don't conflict with native mineflayer events. Another reason is with bot.addChatPatten came bot.addChatPatternSet which is something new to mineflayer which allows waiting for many different patterns before emitting the event.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@xMdb
Comment options

@TheDudeFromCI
Comment options

Comment options

You must be logged in to vote
1 reply
@xMdb
Comment options

Answer selected by xMdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants