mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 01:25:07 +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:
|
except ValueError:
|
||||||
# Split failed, which means format is not correct
|
# Split failed, which means format is not correct
|
||||||
raise _InvalidTriggerArgsError
|
raise _InvalidTriggerArgsError
|
||||||
|
trigger_args['day_of_week'] -= 1 # Because APScheduler's day of week is from 0 to 6
|
||||||
|
|
||||||
# Parse '--multi' option
|
# Parse '--multi' option
|
||||||
multi = False
|
multi = False
|
||||||
|
Loading…
Reference in New Issue
Block a user