some cosmetics and case statements

This commit is contained in:
Von Random 2024-11-09 22:01:38 +02:00
parent 35da34bc8c
commit c4f65650b9
3 changed files with 16 additions and 12 deletions

View file

@ -30,6 +30,7 @@ class Cron:
def __mkjob(self, job: dict) -> callable:
tokens = frozenset(job['tokens'].split(','))
async def send_message() -> None:
if 'rand' in job:
wait_seconds = random.randint(0, job['rand']) * 60