mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
Add scheduler
This commit is contained in:
parent
e834da4090
commit
6e804d8aea
@ -90,6 +90,7 @@ def add_job(args_text, ctx_msg, internal=False):
|
||||
except ValueError:
|
||||
# Split failed, which means format is not correct
|
||||
raise _InvalidTriggerArgsError
|
||||
trigger_args['day_of_week'] -= 1 # Because APScheduler's day of week is from 0 to 6
|
||||
|
||||
# Parse '--multi' option
|
||||
multi = False
|
||||
|
Loading…
Reference in New Issue
Block a user