16 lines
431 B
Python
16 lines
431 B
Python
from core.main import *
|
|
|
|
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 help.keys():
|
|
helpMap.append("%s: %s" % (i, help[i]))
|
|
info("\n".join(helpMap))
|
|
return
|
|
else:
|
|
incUsage(None)
|