更改调度器相关的 api
Closed this issue · 0 comments
felinae98 commented
当前形式的调度器
class ArknightsSchedConf(SchedulerConfig, name="arknights"):
schedule_type = "interval"
schedule_setting = {"seconds": 30}
class Arknights(NewMessage):
...
scheduler_class = "arknights"
更改为
class ArknightsSchedConf(SchedulerConfig):
schedule_type = "interval"
schedule_setting = {"seconds": 30}
name = "arknights"
class Arknights(NewMessage):
...
scheduler = ArknightsSchedConf
新增 inline 调度器
class Arknights(NewMessage):
...
scheduler = Schedule(schedule_type="interval", scheduler_setting={"seconds": 30})