Functions that take action on various message text contents.
Functions that take action on various message text contents.
(add-search bot msg)
Add a new search for the user.
Add a new search for the user.
(extract-keyword msg)
Extract only the keyword(s) from a text message. Convert to lowercase to avoid case sensitive searches.
Extract only the keyword(s) from a text message. Convert to lowercase to avoid case sensitive searches.
(help bot msg)
Send info about this bot and available commands.
Send info about this bot and available commands.
(list-search bot msg)
List the current searches setup for the user.
List the current searches setup for the user.
(remove-search bot msg)
Remove a search for the user.
Remove a search for the user.
(search bot msg)
Search for a match in the text. Mention the user if found.
Search for a match in the text. Mention the user if found.
(send-msg bot chat-id text)
Send a message to the chat.
Send a message to the chat.
(settings bot msg)
Implements the /settings command.
Implements the /settings command.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close