Fixed line buffering, added example.
[botbot.git] / examples / hello_world.scm
diff --git a/examples/hello_world.scm b/examples/hello_world.scm
new file mode 100644 (file)
index 0000000..6f26ff1
--- /dev/null
@@ -0,0 +1,5 @@
+;; Basic hello-world bot:
+
+(lambda (source args privmsg)
+  (if (string=? (car args) "hello")
+      (privmsg source "Bonjour!")))