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))
- 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 with tls and register.
(do-connect irc)
(do-wrap-port/tls irc)
(do-register irc)
- Join channel "#test".
(do-join irc "#test")
- Let the `bot' do his job.
(do-runloop irc)