From 5617e3f6c9e644314e77fe47afb3e4ef087bed93 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 8 Dec 2019 23:05:00 -0800 Subject: [PATCH] zero pad minutes in irc output --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 43a5435..8f7dabd 100644 --- a/bot.py +++ b/bot.py @@ -344,7 +344,7 @@ def msg_think(match: Match[str]) -> Response: def dt_str() -> str: dt_now = datetime.datetime.now() - return f'[{dt_now.hour}:{dt_now.minute}]' + return f'[{dt_now.hour:02}:{dt_now.minute:02}]' async def amain(config: Config, *, quiet: bool) -> NoReturn: