diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -88,9 +88,12 @@ async def search_teammates(server, channel, who, query, notify=True): if not mention in players and mention != who.mention: players += [mention] if len(players) > 0: - await cli.send_message(channel, "%s playing right now: %s" % (who.mention, ", ".join(players))) + await cli.send_message(channel, "%s %s want to play" % (who.mention, ", ".join(players))) else: - await cli.send_message(channel, "%s nobody is playing right now. I'll notify you when somebody can." % (who.mention)) + if notify: + await cli.send_message(channel, "%s Nobody wants to play. I'll notify you when somebody can." % (who.mention)) + else: + await cli.send_message(channel, "%s Nobody wants to play." % (who.mention)) if notify: await asyncio.sleep((end-start).total_seconds()) |
