# 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
@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.")