zero pad minutes in irc output

This commit is contained in:
Anthony Sottile 2019-12-08 23:05:00 -08:00
parent 371ff0d89a
commit 5617e3f6c9
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -344,7 +344,7 @@ def msg_think(match: Match[str]) -> Response:
def dt_str() -> str: def dt_str() -> str:
dt_now = datetime.datetime.now() 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: async def amain(config: Config, *, quiet: bool) -> NoReturn: