projects
/
8sync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Rename package.scm to guix.scm and update.
[8sync.git]
/
demos
/
ircbot.scm
diff --git
a/demos/ircbot.scm
b/demos/ircbot.scm
index c1c573e08ac24983ddda378c9cde95fc08605633..22d2a1d3a386a35f81a11662b8428c7a5d8ccc75 100755
(executable)
--- a/
demos/ircbot.scm
+++ b/
demos/ircbot.scm
@@
-30,8
+30,8
@@
(define-class <my-irc-bot> (<irc-bot>))
(define-class <my-irc-bot> (<irc-bot>))
-(define-method (handle-line (irc-bot <my-irc-bot>)
speaker channel
- line emote?)
+(define-method (handle-line (irc-bot <my-irc-bot>)
message
+
speaker channel
line emote?)
(define my-name (irc-bot-username irc-bot))
(define (looks-like-me? str)
(or (equal? str my-name)
(define my-name (irc-bot-username irc-bot))
(define (looks-like-me? str)
(or (equal? str my-name)
@@
-116,14
+116,8
@@
(repl
(bootstrap-actor* hive <repl-manager> "repl"))))
(repl
(bootstrap-actor* hive <repl-manager> "repl"))))
- (define initial-messages
- (if repl
- (list (bootstrap-message hive irc-bot 'init)
- (bootstrap-message hive repl-manager 'init))
- (list (bootstrap-message hive irc-bot 'init))))
-
;; TODO: load REPL
;; TODO: load REPL
- (run-hive hive
initial-messages
))
+ (run-hive hive
'()
))
(define (main args)
(define parsed-args (parse-args "ircbot.scm" args))
(define (main args)
(define parsed-args (parse-args "ircbot.scm" args))