summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.py b/main.py
index 83d8b74..d101774 100644
--- a/main.py
+++ b/main.py
@@ -96,8 +96,11 @@ async def on_message(message):
await cli.send_message(message.channel, "<play with me [now (default) | in (timespan) | at,from (time)] [for (timespan, default 30 minutes) | until (time)]> to find teammates.")
await cli.send_message(message.channel, "<don't play with me> to cancel.")
- if msg.startswith("play with me"):
- when = message.content[len("play with me"):]
+ if msg.startswith("play with me") or msg.startswith("?play"):
+ if msg.startswith("play with me"):
+ when = message.content[len("play with me"):]
+ else:
+ when = message.content[len("?play")]
response = await search_teammates(message.author, when)
await cli.send_message(message.channel, response)