#:export (<irc-bot>
irc-bot-username irc-bot-server irc-bot-channels irc-bot-port
+ irc-bot-init irc-bot-cleanup
dispatch-message handle-message
default-irc-port ;REMOVEME compat
(or (slot-ref irc-bot 'realname)
(irc-bot-username irc-bot)))
-(define (irc-bot-init irc-bot message)
+(define-method (irc-bot-init (irc-bot <irc-bot>) message)
"Initialize the IRC bot"
(define socket (irc:listen (irc-bot-server irc-bot)
#:port (irc-bot-port irc-bot)
(<- (actor-id irc-bot) 'main-loop))
-(define (irc-bot-cleanup irc-bot message)
+(define-method (irc-bot-cleanup (irc-bot <irc-bot>) message)
(close (irc-bot-socket irc-bot)))
(define (irc-bot-main-loop irc-bot message)