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

fbs/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))
  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

About

an irc library for guile

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •