trinque

2016/08/10

ircbot-genesis.vpatch

Filed under: Software — Tags: — trinque @ 10:29 a.m.

From README:

`ircbot` provides a simple CLOS class, `ircbot`, which will maintain a connection to a single IRC channel via `cl-irc`. The bot will handle ping/pong and detect failed connections, and is capable of authenticating with NickServ (using ghost when necessary to reacquire nick).

From INSTALL:

 * Install SBCL (with sb-thread) and Quicklisp.

 * From the SBCL REPL:
     (ql:quickload :cl-irc)

 * Use V to press `ircbot`

mkdir -p ~/src/ircbot
cd ~/src/ircbot

mkdir .wot
cd .wot && wget http://trinque.org/trinque.asc && cd ..

v.pl init http://trinque.org/src/ircbot
v.pl press ircbot-genesis ircbot-genesis.vpatch

ln -s ~/src/ircbot/ircbot-genesis ~/quicklisp/local-projects/ircbot

From USAGE:

(asdf:load-system :ircbot)
(defvar *bot*)
(setf *bot*
      (ircbot:make-ircbot
       "chat.freenode.net" 6667 "nick" "password" "#channel"))

; connect in separate thread, returning thread
(ircbot:ircbot-connect-thread *bot*)

; or connect using the current thread
; (ircbot:ircbot-connect *bot*)

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

+