X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/db50981b8ba6000a52d4dd5e867d6e54e62c061e..839d2b358368b12c685ad30e6e6a534179dd0478:/modules/modtest.py diff --git a/modules/modtest.py b/modules/modtest.py index 928a834..9ae5258 100644 --- a/modules/modtest.py +++ b/modules/modtest.py @@ -1,10 +1,22 @@ +# 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 +# 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])))