monolith/commands/help.py

16 lines
429 B
Python

import main
class Help:
def __init__(self, register):
register("help", self.help)
def help(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
if authed:
helpMap = []
for i in main.help.keys():
helpMap.append("%s: %s" % (i, main.help[i]))
info("\n".join(helpMap))
return
else:
incUsage(None)