mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-06 12:20:00 +08:00
🐛 代码优化
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user