🐛 代码优化

This commit is contained in:
HibiKier
2024-08-02 19:51:52 +08:00
parent 1ecb364f30
commit fdb62f7226
5 changed files with 25 additions and 27 deletions
-7
View File
@@ -1,4 +1,3 @@
import os
import uuid
from nonebot import require
@@ -22,16 +21,10 @@ require("nonebot_plugin_userinfo")
from nonebot_plugin_saa import enable_auto_select_bot
enable_auto_select_bot()
from pathlib import Path
import nonebot
import ujson as json
path = Path(__file__).parent / "platform"
for d in os.listdir(path):
nonebot.load_plugins(str((path / d).resolve()))
driver: Driver = nonebot.get_driver()