From e3258f68822d4ec89565bd8bcdb0336872a1d579 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 4 Dec 2016 15:18:47 +0100 Subject: reply with current time --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index a6c6fa3..813e7ab 100644 --- a/main.py +++ b/main.py @@ -78,9 +78,9 @@ async def search_teammates(who, query): if not mention in players: players += [mention] if len(players) > 1: - return ", ".join(players) + " can play together at %s." % (start.strftime("%H:%M")) + return ", ".join(players) + " can play together at %s. It is now %s." % (start.strftime("%H:%M"), datetime.datetime.now().strftime("%H:%M")) else: - return "Nobody can play at that time. I will notify you if anyone can play between %s and %s." % (start.strftime("%H:%M"), end.strftime("%H:%M")) + return "Nobody can play at that time. I will notify you if anyone can play between %s and %s. It is now %s." % (start.strftime("%H:%M"), end.strftime("%H:%M"), datetime.datetime.now().strftime("%H:%M")) @cli.event async def on_message(message): -- cgit v1.3.1