Fix the help method parsing
This commit is contained in:
parent
7af4a9c037
commit
6d17c771e9
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user