diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-12-09 15:07:26 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-12-09 15:07:26 +0100 |
| commit | 63ce20df9675e5bd09d74d85a8f24474452bdb92 (patch) | |
| tree | fb4553018dcbaf6fc834be1866b9dad31b48a43b /main.py | |
| parent | 5e7e6aa45cbe1e2a07d336ad482546705494676a (diff) | |
| download | Vainbot-63ce20df9675e5bd09d74d85a8f24474452bdb92.tar.gz Vainbot-63ce20df9675e5bd09d74d85a8f24474452bdb92.zip | |
return single players when asking queue
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")) |
