mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-12-01 09:44:44 +08:00
feat: 添加了网页监控面板
This commit is contained in:
parent
d739c4cde6
commit
9585910623
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
.cache/
|
.cache/
|
||||||
data/
|
data/
|
||||||
|
plugins/
|
||||||
_config.yml
|
_config.yml
|
||||||
config.example.yml
|
config.example.yml
|
@ -5,10 +5,12 @@ import nonebot.plugin
|
|||||||
from src.utils.language import load_from_dir
|
from src.utils.language import load_from_dir
|
||||||
from src.utils.resource import load_resource_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"
|
RESOURCE_PATH = "src/resources"
|
||||||
load_resource_from_dir(RESOURCE_PATH)
|
load_resource_from_dir(RESOURCE_PATH)
|
||||||
|
|
||||||
for plugin_dir in os.listdir("src/plugins"):
|
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_plugin(f"src.plugins.{plugin_dir}")
|
||||||
|
|
||||||
|
nonebot.plugin.load_plugins("plugins")
|
Loading…
Reference in New Issue
Block a user