summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-12-09 15:07:26 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2016-12-09 15:07:26 +0100
commit63ce20df9675e5bd09d74d85a8f24474452bdb92 (patch)
treefb4553018dcbaf6fc834be1866b9dad31b48a43b /main.py
parent5e7e6aa45cbe1e2a07d336ad482546705494676a (diff)
downloadVainbot-63ce20df9675e5bd09d74d85a8f24474452bdb92.tar.gz
Vainbot-63ce20df9675e5bd09d74d85a8f24474452bdb92.zip
return single players when asking queue
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 6e83a9d..825e592 100644
--- a/main.py
+++ b/main.py
@@ -98,8 +98,8 @@ async def search_teammates(who, query, notify=True):
mention = (await get_user(teammate["player"]))["mention"]
if not mention in players:
players += [mention]
- if len(players) > 1:
- return ", ".join(players) + " can play together."
+ if len(players) > 1 or (len(players) == 1 and not notify):
+ return ", ".join(players) + " can play."
else:
if notify:
return "Nobody can play at that time. I will notify you if anyone wants to play between %s and %s. It is now %s." % (start.strftime("%H:%M"), end.strftime("%H:%M"), datetime.datetime.now().strftime("%H:%M"))