Fix the help method parsing

This commit is contained in:
Luke Robles 2018-07-01 12:17:46 -07:00
parent 7af4a9c037
commit 6d17c771e9
2 changed files with 5 additions and 3 deletions

View File

@ -265,6 +265,11 @@ async def on_message(message):
)
if message.content.startswith('!quake'):
if len(message.content.split()) == 1:
return await client.send_message(
message.channel,
help_methods.get_help_message('quake')
)
await client.send_message(
message.channel,
embed=quake.parse_message(message)

View File

@ -9,9 +9,6 @@ def parse_message(message):
Handles the message and looks for a plaer name.
"""
if len(message.content.split()) == 1:
return help_methods.get_help_message('quake')
# Return the player's name
name = message.content.split()[1]
if len(message.content.split()) > 1: