1
0
forked from bot/app

📝 使用 driver_manager 自动管理启用的驱动器,无需手动配置环境变量 (当配置了环境变量时环境变量优先)

This commit is contained in:
Expliyh 2024-05-17 16:33:48 +08:00
parent a72eeb4c3f
commit 6509b293db
No known key found for this signature in database
GPG Key ID: F30DE0CFF6157916
4 changed files with 1 additions and 2 deletions

View File

@ -1,11 +1,10 @@
import nonebot import nonebot
from nonebot.adapters.onebot import v11, v12 from nonebot.adapters.onebot import v11, v12
from nonebot.adapters import satori from nonebot.adapters import satori
from liteyuki.utils import init from liteyuki.utils import init, driver_manager
from liteyuki.utils.base.config import load_from_yaml from liteyuki.utils.base.config import load_from_yaml
from liteyuki.utils.base.data_manager import StoredConfig, common_db from liteyuki.utils.base.data_manager import StoredConfig, common_db
from liteyuki.utils.base.ly_api import liteyuki_api from liteyuki.utils.base.ly_api import liteyuki_api
from liteyuki import driver_manager
if __name__ == "__mp_main__": if __name__ == "__mp_main__":
init() init()