From 63ce20df9675e5bd09d74d85a8f24474452bdb92 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 9 Dec 2016 15:07:26 +0100 Subject: return single players when asking queue --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.py') 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")) -- cgit v1.3.1