some cosmetics and case statements
This commit is contained in:
parent
35da34bc8c
commit
c4f65650b9
3 changed files with 16 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue