For anyone interested, I'd like to announce the release of my IRC client
library for Racket. It packages up the client side of the IRC protocol and
does most of the hard processing for you, wrapping everything into a simple
API. It's available as a package:

raco pkg install irc

Connecting and sending a message is as simple as the following:

(require irc)
(define-values (connection ready-event)
  (irc-connect "chat.freenode.net" 6667 "rackbot" "rbot" "Racket Bot"))
(sync ready-event)
(irc-join-channel connection "#racket")
(irc-send-message connection "#racket" "Hello, world!")
(sleep 500) ; don't have to sleep, just don't let the program terminate and
close the TCP session

The code is available at https://github.com/schuster/racket-irc. Feedback
welcome!
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to