From bb3e5877b7b3b8ab063b39a5b47d103b819da1c2 Mon Sep 17 00:00:00 2001 From: Vandeputte Brice Date: Mon, 26 Feb 2024 01:24:17 +0100 Subject: [PATCH] Update api.md - addChatPattern[Set] link to example of usage (#3304) Co-authored-by: Romain Beaumont --- docs/api.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api.md b/docs/api.md index 379fa115b..0e09d2da7 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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, @@ -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)