2024-03-18 18:21:56 +08:00
|
|
|
import nonebot
|
|
|
|
from nonebot.plugin import PluginMetadata
|
2024-03-19 00:27:40 +08:00
|
|
|
from src.utils.language import get_system_lang
|
2024-03-21 14:52:02 +08:00
|
|
|
from src.utils.data_manager import *
|
2024-03-19 00:27:40 +08:00
|
|
|
from .loader import *
|
|
|
|
from .webdash import *
|
2024-03-21 14:52:02 +08:00
|
|
|
from src.utils.config import config
|
2024-03-18 18:21:56 +08:00
|
|
|
|
|
|
|
__author__ = "snowykami"
|
|
|
|
__plugin_meta__ = PluginMetadata(
|
|
|
|
name="轻雪主程序",
|
|
|
|
description="轻雪主程序插件,包含了许多初始化的功能",
|
|
|
|
usage="",
|
|
|
|
homepage="https://github.com/snowykami/LiteyukiBot",
|
2024-03-21 14:52:02 +08:00
|
|
|
extra={
|
|
|
|
"liteyuki_plugin": True,
|
|
|
|
}
|
2024-03-18 18:21:56 +08:00
|
|
|
)
|
|
|
|
|
2024-03-21 14:52:02 +08:00
|
|
|
auto_migrate()
|
2024-03-18 18:21:56 +08:00
|
|
|
|
2024-03-19 00:27:40 +08:00
|
|
|
sys_lang = get_system_lang()
|
|
|
|
nonebot.logger.info(sys_lang.get("main.current_language", LANG=sys_lang.get("language.name")))
|
2024-03-19 13:16:25 +08:00
|
|
|
nonebot.logger.info(sys_lang.get("main.enable_webdash", URL=f"http://127.0.0.1:{config.get('port', 8080)}"))
|