mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
Rename package to "nonebot"
This commit is contained in:
11
nonebot/sched.py
Normal file
11
nonebot/sched.py
Normal file
@ -0,0 +1,11 @@
|
||||
try:
|
||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||
except ImportError:
|
||||
# APScheduler is not installed
|
||||
AsyncIOScheduler = None
|
||||
|
||||
if AsyncIOScheduler:
|
||||
class Scheduler(AsyncIOScheduler):
|
||||
pass
|
||||
else:
|
||||
Scheduler = None
|
Reference in New Issue
Block a user