Liking cljdoc? Tell your friends :D

clj-irc.core


*bot*clj

source

add-auto-reconnectclj

(add-auto-reconnect & {:keys [bot channels]})
source

add-handlerclj

(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
sourceraw docstring

build-botclj

(build-bot {:keys [nick name host port server-password messages-delay ssl?
                   verbose?]
            :or {nick "ircbotx" name "ircbotx" port 6667 messages-delay 1000}})
source

channelsclj

(channels)
source

defbotcljmacro

(defbot {:keys [nick host port ssl? verbose? channels auto-reconnect] :as opts}
        &
        body)

Define an irc bot

Define an irc bot
sourceraw docstring

disconnectclj

(disconnect)
source

format-messageclj

(format-message event)
source

join-channelclj

(join-channel channel)
source

on-messagecljmacro

(on-message msg reply-to opts & body)
source

reconnectclj

(reconnect)
source

respondclj

(respond event message)
source

send-messageclj

(send-message channel message)
source

shutdownclj

(shutdown)
source

with-botcljmacro

(with-bot bot & body)

Run commands in body with specified bot

Run commands in body with specified bot
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close