renaming method

This commit is contained in:
Tyler 2017-08-08 16:40:25 -06:00
parent 8afdad88b4
commit 715fcee625
2 changed files with 4 additions and 4 deletions

View File

@ -133,7 +133,7 @@ async def on_message(message):
if len(message.content.split()) > 1: if len(message.content.split()) > 1:
method = message.content.split()[1] method = message.content.split()[1]
try: try:
explanation = help_methods.return_help_message(method) explanation = help_methods.get_help_message(method)
except KeyError: except KeyError:
await client.send_message( await client.send_message(
message.channel, message.channel,
@ -147,7 +147,7 @@ async def on_message(message):
else: else:
await client.send_message( await client.send_message(
message.channel, message.channel,
help_methods.return_help_message('show_all') help_methods.get_help_message('show_all')
) )

View File

@ -1,4 +1,4 @@
def return_help_message(method): def get_help_message(method):
supported_methods = { supported_methods = {
'decide': [ 'decide': [
'Dragon-bot will help make the tough decisions for you', '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 <method>".format(count, keys) message = "I currently have `{}` methods,\n\n```{}```\n\nYou can get in formation about a specific method by typing !help <method>".format(count, keys)
else: else:
message = ' '.join(supported_methods[method]) message = ' '.join(supported_methods[method])
return message return message