Created
February 14, 2015 23:04
-
-
Save ralt/1259e555e0cd54aff767 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 ((queue (lparallel.queue:make-queue)) | |
(connection (cl-irc:connect :nickname "Ralt__" :server "irc.freenode.net"))) | |
(cl-irc:add-hook | |
connection | |
'cl-irc:irc-message | |
#'(lambda (msg) | |
(lparallel.queue:push-queue msg queue))) | |
(bt:make-thread #'(lambda () | |
(cl-irc:read-message-loop connection))) | |
(lparallel.queue:pop-queue queue)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment