monolith/legacy/commands/help.py

19 lines
437 B
Python
Raw Normal View History

import main
2022-07-21 12:39:41 +00:00
class HelpCommand:
def __init__(self, *args):
self.help(*args)
2022-09-05 06:20:30 +00:00
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)