github_nonebot_plugin-apscheduler

时间:2021-03-10 16:57:37
【文件属性】:
文件名称:github_nonebot_plugin-apscheduler
文件大小:14KB
文件格式:ZIP
更新时间:2021-03-10 16:57:37
Python NoneBot插件AP计划程序 :sparkles: NoneBot APScheduler定时任务插件 :sparkles: 使用方式 加载插件后使用require获取scheduler对象(请注意插件加载顺序) from nonebot import require scheduler = require ( "nonebot_plugin_apscheduler" ). scheduler @ scheduler . scheduled_job ( "cron" , hour = "*/2" , id = "xxx" , args = [ 1 ], kwargs = { arg2 : 2 }) async def run_every_2_hour ( arg1 , arg2 ): pass scheduler . add_job ( run_every_day_from_program_start , "i
【文件预览】:
github_nonebot_plugin-apscheduler-master
----poetry.lock(27KB)
----.gitignore(2KB)
----pyproject.toml(518B)
----LICENSE(1KB)
----nonebot_plugin_apscheduler()
--------__init__.py(820B)
--------config.py(303B)
----README.md(2KB)
----.style.yapf(32B)
----.editorconfig(698B)

网友评论