From 975358d003bd49b08fd983cf5fbfdfb03368321c Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Fri, 22 Sep 2017 05:20:37 +0000 Subject: [PATCH] Fixing the fucked up help output --- app/help_methods.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/app/help_methods.py b/app/help_methods.py index 9c3b9fcf..856f2709 100644 --- a/app/help_methods.py +++ b/app/help_methods.py @@ -77,16 +77,14 @@ def get_help_message(method): # Join key : value of the help method they passed in message = "{} : {}".format(method, ' '.join(supported_methods[method])) - # Return the message wrapped in css formatting so we get pretty colors - return "```css\n{}\n```".format(message) + return "\n{}\n".format(message) def parse_message(message): + method = 'show_all' if len(message.split()) > 1: method = message.split()[1] - try: - explanation = get_help_message(method) - except KeyError: - return "I can't help you with that" - return "```css\n{}\n```".format(explanation) - - return get_help_message('show_all') + try: + explanation = get_help_message(method) + except KeyError: + return "I can't help you with that" + return "```css\n{}\n```".format(explanation)