--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mcbot/cmds/misc.lua Sun Apr 11 18:13:18 2010 +0200
@@ -0,0 +1,39 @@
+
+local function hello (args)
+ return "Hello!"
+end
+
+mcbot_register_command("hello", hello)
+mcbot_register_command("hi", hello)
+
+
+local function thanks (args)
+ return "You're welcome"
+end
+
+mcbot_register_command("thanks", thanks)
+
+
+local function help (args)
+ return "I can't help you, buddy"
+end
+
+mcbot_register_command("help", help)
+
+
+local function ping (args)
+ return "pong"
+end
+
+mcbot_register_command("ping", ping)
+
+
+local function date (args)
+ if args then
+ return os.date(args)
+ else
+ return os.date()
+ end
+end
+
+mcbot_register_command("date", date)