an irc library for guile
Scheme Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
irc
test
.gitignore
AUTHORS
COPYING
ChangeLog
IDEAS
INSTALL
Makefile.am
NEWS
README
README.md
acinclude.m4
autogen.sh
configure.ac
env.in
guile.am

README.md

GUILE-IRC

An irc library for GNU guile.

Usage

  1. 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:)))
  1. Create an irc object.
(define irc (make-irc #:nick "bot" #:server "localhost" #:port 6697))
  1. Install some message handlers.
(install-ping-handler! irc)
(install-hello-handler! irc #:prefix "," #:command "hi" #:reply "hello master!")
(install-printer! irc)
  1. Connect to the server with tls and register.
(do-connect irc)
(do-wrap-port/tls irc)
(do-register irc)
  1. Join channel "#test".
(do-join irc "#test")
  1. Let the `bot' do his job.
(do-runloop irc)

API

API reference page