diff --git a/app/dragon-bot.py b/app/dragon-bot.py index 3aa55e27..ca28d18f 100644 --- a/app/dragon-bot.py +++ b/app/dragon-bot.py @@ -134,7 +134,7 @@ async def on_message(message): if len(message.content.split()) > 1: method = message.content.split()[1] try: - explanation = help_methods.return_help_message(method) + explanation = help_methods.get_help_message(method) except KeyError: await client.send_message( message.channel, @@ -148,7 +148,7 @@ async def on_message(message): else: await client.send_message( message.channel, - help_methods.return_help_message('show_all') + help_methods.get_help_message('show_all') ) diff --git a/app/help_methods.py b/app/help_methods.py index 8557cf44..5f2d5522 100644 --- a/app/help_methods.py +++ b/app/help_methods.py @@ -1,4 +1,4 @@ -def return_help_message(method): +def get_help_message(method): supported_methods = { 'decide': [ 'Dragon-bot will help make the tough decisions for you', @@ -44,4 +44,4 @@ def return_help_message(method): message = "I currently have `{}` methods,\n\n```{}```\n\nYou can get in formation about a specific method by typing !help ".format(count, keys) else: message = ' '.join(supported_methods[method]) - return message \ No newline at end of file + return message