zero pad minutes in irc output
This commit is contained in:
parent
371ff0d89a
commit
5617e3f6c9
2
bot.py
2
bot.py
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue