X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/32cabc3d9b1e7cc05b0c2c7f8519e137053ac66b..a31511321780ed95989912db819ac124ae1199e9:/modules/module.py?ds=sidebyside diff --git a/modules/module.py b/modules/module.py index 3d9b3e1..8a2989c 100644 --- a/modules/module.py +++ b/modules/module.py @@ -1,5 +1,5 @@ # Erebus IRC bot - Author: John Runyon -# simple module example +# module control through irc # This file is released into the public domain; see http://unlicense.org/ # module info @@ -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.")