summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-12-09 15:13:08 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2016-12-09 15:13:08 +0100
commitd5500931cd5d37c8c7bd13a9dc008ceadf4a430f (patch)
tree24b126e1c88d2c259ffcbca3603f26e4afe48525 /main.py
parent63ce20df9675e5bd09d74d85a8f24474452bdb92 (diff)
downloadVainbot-d5500931cd5d37c8c7bd13a9dc008ceadf4a430f.tar.gz
Vainbot-d5500931cd5d37c8c7bd13a9dc008ceadf4a430f.zip
fix never entering queue
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.py b/main.py
index 825e592..4c7ad07 100644
--- a/main.py
+++ b/main.py
@@ -124,9 +124,11 @@ async def on_message(message):
if msg.startswith("play with me") or msg.startswith("who can play"):
if msg.startswith("play with me"):
when = message.content[len("play with me"):]
+ notify = False
else:
when = message.content[len("who can play"):]
- response = await search_teammates(message.author, when, False)
+ notify = True
+ response = await search_teammates(message.author, when, notify)
await cli.send_message(message.channel, response)
if msg.startswith("don't play with me") or msg.startswith("dont play with me"):