]> jfr.im git - erebus.git/blobdiff - modules/module.py
Fixed header
[erebus.git] / modules / module.py
index 3d9b3e1aec7c9b62e8979a1f66fe8a7abca56958..8a2989c63d21a0175d080877995c13ca041c16e6 100644 (file)
@@ -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.")