mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +08:00
feat: 添加了网页监控面板
This commit is contained in:
parent
d739c4cde6
commit
9585910623
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,6 +2,6 @@
|
||||
|
||||
.cache/
|
||||
data/
|
||||
|
||||
plugins/
|
||||
_config.yml
|
||||
config.example.yml
|
@ -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:
|
||||
if plugin_dir != THIS_PLUGIN_NAME:
|
||||
nonebot.plugin.load_plugin(f"src.plugins.{plugin_dir}")
|
||||
|
||||
nonebot.plugin.load_plugins("plugins")
|
Loading…
Reference in New Issue
Block a user