mwolson.org Blog - /Tech/Projects

Sat, 04 Jun 2005

Training my IRC bot with an acronym list

I've recently come across a good set of acronyms at http://twb.ath.cx/~twb/src/misc/elisp/emacs-wiki-wtf.el . After commenting out the last part of the file, I did the following to get them into my ErBot instance (from the Emacs instance that does the training).

M-x load-file ~/emacs-wiki-wtf.el

M-:
(setq erbtrain-list
      (mapcar (lambda (ref)
                (concat "plugbot: " (car ref)
                        " is " (upcase-initials (cdr ref))))
              emacs-wiki-wtf-alist))

M-x erbtrain-resume
M-x idledo-start

The results may be seen by talking with plugbot on Freenode.