Skip to content

rekado/guile-irc

 
 

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 #:ssl #t))
  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 and register.
(do-connect irc)
(do-register irc)
  1. Join channel "#test".
(do-join irc "#test")
  1. Let the `bot' do its job.
(do-runloop irc)

API

The API is documented in the Info manual.

License

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.

About

an irc library for guile

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scheme 85.4%
  • M4 12.6%
  • Makefile 1.3%
  • Shell 0.7%