Fixing the fucked up help output
This commit is contained in:
parent
8eafaa54ba
commit
975358d003
@ -77,16 +77,14 @@ def get_help_message(method):
|
|||||||
# Join key : value of the help method they passed in
|
# Join key : value of the help method they passed in
|
||||||
message = "{} : {}".format(method, ' '.join(supported_methods[method]))
|
message = "{} : {}".format(method, ' '.join(supported_methods[method]))
|
||||||
|
|
||||||
# Return the message wrapped in css formatting so we get pretty colors
|
return "\n{}\n".format(message)
|
||||||
return "```css\n{}\n```".format(message)
|
|
||||||
|
|
||||||
def parse_message(message):
|
def parse_message(message):
|
||||||
|
method = 'show_all'
|
||||||
if len(message.split()) > 1:
|
if len(message.split()) > 1:
|
||||||
method = message.split()[1]
|
method = message.split()[1]
|
||||||
try:
|
try:
|
||||||
explanation = get_help_message(method)
|
explanation = get_help_message(method)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return "I can't help you with that"
|
return "I can't help you with that"
|
||||||
return "```css\n{}\n```".format(explanation)
|
return "```css\n{}\n```".format(explanation)
|
||||||
|
|
||||||
return get_help_message('show_all')
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user