actors: Add auto-init feature to actors.
[8sync.git] / demos / ircbot.scm
index 1c4ae748e0704192a2a4bb0e02be8e111c0d2dc6..c1c573e08ac24983ddda378c9cde95fc08605633 100755 (executable)
                   (repl #f))
   (define hive (make-hive))
   (define irc-bot
-    (hive-create-actor* hive <my-irc-bot> "irc-bot"
-                        #:username username
-                        #:server server
-                        #:channels channels))
+    (bootstrap-actor* hive <my-irc-bot> "irc-bot"
+                      #:username username
+                      #:server server
+                      #:channels channels))
   (define repl-manager
     (cond
      ((string? repl)
-      (hive-create-actor* hive <repl-manager> "repl"
-                          #:path repl))
+      (bootstrap-actor* hive <repl-manager> "repl"
+                        #:path repl))
      (repl
-      (hive-create-actor* hive <repl-manager> "repl"))))
+      (bootstrap-actor* hive <repl-manager> "repl"))))
 
   (define initial-messages
     (if repl