summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-12-04 15:18:47 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2016-12-04 15:18:47 +0100
commite3258f68822d4ec89565bd8bcdb0336872a1d579 (patch)
tree9f18948ef76f9a89bc7f7aba2b77c43c7469fc41
parent0142e8a6835ebb1c7a3556b61a9cf9fbb24f785f (diff)
downloadVainbot-e3258f68822d4ec89565bd8bcdb0336872a1d579.tar.gz
Vainbot-e3258f68822d4ec89565bd8bcdb0336872a1d579.zip
reply with current time
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
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):