X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/d431e54309841dcdb50d440e440234200d0de2fc..e659feb5010053f05070be17ecfef36e9ee138ba:/modules/module.py diff --git a/modules/module.py b/modules/module.py index 3d9b3e1..33be1ff 100644 --- a/modules/module.py +++ b/modules/module.py @@ -1,10 +1,10 @@ -# Erebus IRC bot - Author: John Runyon -# simple module example +# Erebus IRC bot - Author: Erebus Team +# module control through irc # This file is released into the public domain; see http://unlicense.org/ # module info modinfo = { - 'author': 'John Runyon (DimeCadmium)', + 'author': 'Erebus Team', 'license': 'public domain', 'compatible': [1], # compatible module API versions 'depends': [], # other modules required to work properly? @@ -46,4 +46,7 @@ def cmd_modreload(bot, user, chan, realtarget, *args): @lib.hook('modlist', needchan=False, glevel=lib.STAFF) @lib.argsEQ(0) def cmd_modlist(bot, user, chan, realtarget, *args): - return NotImplemented + mods = ctlmod.modules + for mod in mods.itervalues(): + bot.msg(user, "- %s %r" % (mod.__name__, mod)) + bot.msg(user, "Done.")