Skip to content

Commit

Permalink
Update api.md - addChatPattern[Set] link to example of usage (#3304)
Browse files Browse the repository at this point in the history
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
  • Loading branch information
boly38 and rom1504 committed Feb 26, 2024
1 parent 643023d commit bb3e587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,8 @@ the event will be called `"chat:name"`, with name being the name passed

returns a number which can be used with bot.removeChatPattern() to only delete this pattern

- :eyes: cf. [examples/chat_parsing](https://github.com/PrismarineJS/mineflayer/blob/master/examples/chat_parsing.js#L17-L36)

#### bot.addChatPatternSet(name, patterns, chatPatternOptions)

make an event that is called every time all patterns havee been matched to messages,
Expand All @@ -1703,6 +1705,8 @@ the event will be called `"chat:name"`, with name being the name passed

returns a number which can be used with bot.removeChatPattern() to only delete this patternset

- :eyes: cf. [examples/chat_parsing](https://github.com/PrismarineJS/mineflayer/blob/master/examples/chat_parsing.js#L17-L36)

#### bot.removeChatPattern(name)

removes a chat pattern(s)
Expand Down

0 comments on commit bb3e587

Please sign in to comment.