An IRC library for GNU Guile.
- Add the modules to your load-path and load.
(add-to-load-path "path/to/lib/..")
(use-modules (irc irc)
(irc handlers)
((irc message)
#:renamer (symbol-prefix-proc 'msg:)))
- Create an IRC object.
(define irc (make-irc #:nick "bot" #:server "localhost" #:port 6697 #:ssl #t))
- Install some message handlers.
(install-ping-handler! irc)
(install-hello-handler! irc #:prefix "," #:command "hi" #:reply "hello master!")
(install-printer! irc)
- Connect to the server and register.
(do-connect irc)
(do-register irc)
- Join channel "#test".
(do-join irc "#test")
- Let the `bot' do its job.
(do-runloop irc)
The API is documented in the Info manual.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.