Started cleaning up plugins/help.py
This commit is contained in:
parent
21b753c892
commit
71661983df
|
@ -21,17 +21,14 @@ def help(inp, input=None, bot=None, say=None, notice=None):
|
||||||
else:
|
else:
|
||||||
funcs[func] = command
|
funcs[func] = command
|
||||||
|
|
||||||
hidden = ["part", "stfu", "kthx", "chnick", "join", "8ballnooxt"]
|
commands = dict((value, key) for key, value in funcs.iteritems())
|
||||||
|
|
||||||
commands = dict((value, key) for key, value in funcs.iteritems() if key not in hidden)
|
|
||||||
|
|
||||||
if not inp:
|
if not inp:
|
||||||
length = 0
|
length = 0
|
||||||
out = ["",""]
|
out = ["",""]
|
||||||
well = []
|
well = []
|
||||||
for x in commands:
|
for x in commands:
|
||||||
if x not in hidden:
|
well.append(x)
|
||||||
well.append(x)
|
|
||||||
well.sort()
|
well.sort()
|
||||||
for x in well:
|
for x in well:
|
||||||
if len(out[0]) + len(str(x)) > 440:
|
if len(out[0]) + len(str(x)) > 440:
|
||||||
|
|
Reference in a new issue