Added usermode +B to conform to tildeverse bot RFC
This commit is contained in:
parent
cff5edd86b
commit
39ca8287ea
22
bot.scm
22
bot.scm
|
@ -1,22 +0,0 @@
|
|||
(use tcp irregex ports srfi-13 srfi-14 srfi-69)
|
||||
|
||||
(define bot-nick "BabiliBot|scm")
|
||||
|
||||
(define (send out message)
|
||||
(format out (string-append message "\r\n")))
|
||||
|
||||
(let-values
|
||||
([(in out)
|
||||
(tcp-connect "127.0.0.1" 6667)])
|
||||
(send out
|
||||
(string-append
|
||||
"USER "
|
||||
(string-join (vector->list (make-vector 4 bot-nick)) " ")))
|
||||
(send out (string-append "NICK " bot-nick))
|
||||
(let loop
|
||||
([line (read-line in)])
|
||||
(if (eof-object? line)
|
||||
line
|
||||
(begin
|
||||
(print line)
|
||||
(loop (read-line in))))))
|
|
@ -68,7 +68,6 @@ class Bot:
|
|||
self.join(channel)
|
||||
|
||||
def log_kick(self, message):
|
||||
# :aewens!aewens@rightful.heir.to.chaos KICK #insane BabiliBot|py :aewens
|
||||
regex = "KICK #\S+ {} :".format(self.botnick)
|
||||
before, kicker = re.split(regex, message)
|
||||
self.kickers.append(kicker)
|
||||
|
|
Loading…
Reference in New Issue