An IRC library for Clojure.
An IRC library for Clojure.
(connect host
port
nick
&
{:keys [pass timeout real-name mode username callbacks ssl?]
:or {real-name "irclj"
mode 0
ssl? false
callbacks {:raw-log events/stdout-callback}}
:as all})
Connect to IRC. Connects in another thread and returns a big fat ref of data about the connection, you, and IRC in general.
Connect to IRC. Connects in another thread and returns a big fat ref of data about the connection, you, and IRC in general.
(ctcp irc target kind & s)
Send a CTCP message to a user or channel. action is a keyword indicating the kind of CTCP you're sending. For example,
(ctcp irc "#foo" :action "drinks his smoothy")
The above is the same as if you were in an IRC client sending /me drinks his smoothy
Send a CTCP message to a user or channel. action is a keyword indicating the kind of CTCP you're sending. For example, (ctcp irc "#foo" :action "drinks his smoothy") The above is the same as if you were in an IRC client sending /me drinks his smoothy
(identify irc password)
Identify with NICKSERV. Will block until the connection is registered.
Identify with NICKSERV. Will block until the connection is registered.
(join irc & channels)
Joins channels. A channel is either a string or a vector of string and key. Blocks until :ready? is delivered.
Joins channels. A channel is either a string or a vector of string and key. Blocks until :ready? is delivered.
(kick irc channel user & [message])
Kick a user from a channel.
Kick a user from a channel.
(kill irc)
Close the socket associated with an IRC connection.
Close the socket associated with an IRC connection.
(message irc target & s)
Sends a PRIVMSG to a user or channel.
Sends a PRIVMSG to a user or channel.
(mode irc channel & [modes])
Request or set the mode for a channel.
Request or set the mode for a channel.
(notice irc target & s)
Sends a NOTICE to a user or channel.
Sends a NOTICE to a user or channel.
(part irc & channels-and-opts)
Part from channels. A channel is either a string or a vector of string and key. If a :message key is passed, then that message is used as the parting message. If this key is passed, it must be the last thing passed to this function.
Part from channels. A channel is either a string or a vector of string and key. If a :message key is passed, then that message is used as the parting message. If this key is passed, it **must** be the last thing passed to this function.
(quit irc)
(reply irc m & s)
Reply to a PRIVMSG. Determines user or channel based on original message.
Reply to a PRIVMSG. Determines user or channel based on original message.
(set-nick irc nick)
Change your nickname on IRC.
Change your nickname on IRC.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close