The Lambda Lab
/
projects
/
botbot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
examples/hello_world.scm
@@ -0,0
+1,5
@@
+;; Basic hello-world bot:
+
+(lambda (source args privmsg)
+ (if (string=? (car args) "hello")
+ (privmsg source "Bonjour!")))