From 8606adce3a4f357e0077572d82f3dfb00399ba53 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 10 Dec 2016 09:34:36 +0100 Subject: reword pwm responses --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index bcc6049..5605106 100644 --- a/main.py +++ b/main.py @@ -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()) -- cgit v1.3.1