]> jfr.im git - erebus.git/blobdiff - modules/modtest.py
Starting module API
[erebus.git] / modules / modtest.py
diff --git a/modules/modtest.py b/modules/modtest.py
new file mode 100644 (file)
index 0000000..ea2f4d9
--- /dev/null
@@ -0,0 +1,9 @@
+# preamble
+import modlib
+lib = modlib.modlib(__name__)
+modstart = lib.modstart
+
+#module code
+@lib.hook('test')
+def cmd_test(bot, user, chan, *args):
+       bot.msg(chan, "You said: !test %s" % (' '.join([str(arg) for arg in args])))