]> jfr.im git - erebus.git/blobdiff - modules/modtest.py
Added !MODLOAD, !MODUNLOAD, !MODRELOAD
[erebus.git] / modules / modtest.py
diff --git a/modules/modtest.py b/modules/modtest.py
deleted file mode 100644 (file)
index f2f96d2..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-# Erebus IRC bot - Author: John Runyon
-# simple module example
-# This file is released into the public domain; see http://unlicense.org/
-
-# module info
-modinfo = {
-       'author': 'John Runyon (DimeCadmium)',
-       'license': 'public domain',
-       'compatible': [1], # compatible module API versions
-       'depends': [], # other modules required to work properly?
-}
-
-# preamble
-import modlib
-lib = modlib.modlib(__name__)
-modstart = lib.modstart
-modstop = lib.modstop
-
-# module code
-@lib.hook('test')
-def cmd_test(bot, user, chan, realtarget, *args):
-       bot.msg(chan, "You said: !test %s" % (' '.join([str(arg) for arg in args])))