(add-handler handler & {:keys [regexp bot] :or {regexp #".*"}})
Add a handler for incomming messages Handler signature is [message reply-to] Example : (add-handler (fn[m r] (r (str "You just said" (:content m))))) You can also specify a regexp to filter incomming messages
Add a handler for incomming messages Handler signature is [message reply-to] Example : (add-handler (fn[m r] (r (str "You just said" (:content m))))) You can also specify a regexp to filter incomming messages
(build-bot {:keys [nick name host port server-password messages-delay ssl?
verbose?]
:or {nick "ircbotx" name "ircbotx" port 6667 messages-delay 1000}})
(defbot {:keys [nick host port ssl? verbose? channels auto-reconnect] :as opts}
&
body)
Define an irc bot
Define an irc bot
(with-bot bot & body)
Run commands in body with specified bot
Run commands in body with specified bot
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close