diff options
| -rw-r--r-- | main.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |
