2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 22:46:01 +00:00

use minutes= not seconds= for simplicity

This commit is contained in:
Nick80835
2023-10-21 21:28:24 -04:00
parent 2c3aaaaef1
commit 87f5d7657d

View File

@@ -57,8 +57,8 @@ async def get_user(event, allow_channel=False):
def parse_time(time_num: int, unit: str) -> timedelta:
match unit:
case "m":
return timedelta(seconds=time_num * 60)
return timedelta(minutes=time_num)
case "h":
return timedelta(seconds=time_num * 60 * 60)
return timedelta(minutes=time_num * 60)
case "d":
return timedelta(seconds=time_num * 24 * 60 * 60)
return timedelta(minutes=time_num * 60 * 24)