Created
February 14, 2015 22:53
-
-
Save ralt/968d210e32f777ab46a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ql:quickload 'lparallel) | |
(ql:quickload 'cl-irc) | |
(ql:quickload 'bordeaux-threads) | |
(let ((chan (lparallel:make-channel)) | |
(connection (cl-irc:connect :nickname "Ralt__" :server "irc.freenode.net"))) | |
(cl-irc:add-hook | |
connection | |
'cl-irc:irc-message | |
#'(lambda (msg) | |
(lparallel:submit-task chan #'(lambda (m) m)))) | |
(bt:make-thread #'(lambda () | |
(cl-irc:read-message-loop connection))) | |
(lparallel:receive-result chan)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment