Skip to content
This repository was archived by the owner on Mar 2, 2020. It is now read-only.

fbs/guile-irc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f1752bf · Feb 2, 2014
Jul 30, 2012
Jan 21, 2014
Apr 22, 2013
Apr 13, 2013
May 30, 2013
Jul 4, 2012
Jul 30, 2012
Apr 13, 2013
Apr 13, 2013
Jun 8, 2013
Jul 30, 2012
Jul 30, 2012
Apr 13, 2013
Apr 13, 2013
Apr 13, 2013
Jan 27, 2014
Apr 13, 2013
Apr 13, 2013

Repository files navigation

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