1
0
forked from bot/app

feat: 添加了网页监控面板

This commit is contained in:
远野千束 2024-03-19 15:58:02 +08:00
parent d739c4cde6
commit 9585910623
2 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@ -2,6 +2,6 @@
.cache/
data/
plugins/
_config.yml
config.example.yml

View File

@ -5,10 +5,12 @@ import nonebot.plugin
from src.utils.language import load_from_dir
from src.utils.resource import load_resource_from_dir
PLUGIN_NAME = os.path.basename(os.path.dirname(__file__))
THIS_PLUGIN_NAME = os.path.basename(os.path.dirname(__file__))
RESOURCE_PATH = "src/resources"
load_resource_from_dir(RESOURCE_PATH)
for plugin_dir in os.listdir("src/plugins"):
if plugin_dir != PLUGIN_NAME:
nonebot.plugin.load_plugin(f"src.plugins.{plugin_dir}")
if plugin_dir != THIS_PLUGIN_NAME:
nonebot.plugin.load_plugin(f"src.plugins.{plugin_dir}")
nonebot.plugin.load_plugins("plugins")