Skip to content

Commit bb3e587

Browse files
boly38rom1504
andauthored
Update api.md - addChatPattern[Set] link to example of usage (#3304)
Co-authored-by: Romain Beaumont <[email protected]>
1 parent 643023d commit bb3e587

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/api.md

+4
Original file line numberDiff line numberDiff line change
@@ -1691,6 +1691,8 @@ the event will be called `"chat:name"`, with name being the name passed
16911691

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

1694+
- :eyes: cf. [examples/chat_parsing](https://github.com/PrismarineJS/mineflayer/blob/master/examples/chat_parsing.js#L17-L36)
1695+
16941696
#### bot.addChatPatternSet(name, patterns, chatPatternOptions)
16951697

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

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

1708+
- :eyes: cf. [examples/chat_parsing](https://github.com/PrismarineJS/mineflayer/blob/master/examples/chat_parsing.js#L17-L36)
1709+
17061710
#### bot.removeChatPattern(name)
17071711

17081712
removes a chat pattern(s)

0 commit comments

Comments
 (0)