mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-12-01 09:44:44 +08:00
28 lines
909 B
Python
28 lines
909 B
Python
import nonebot
|
|
from nonebot.plugin import PluginMetadata
|
|
from liteyuki.utils.language import get_default_lang
|
|
from liteyuki.utils.data_manager import *
|
|
from .loader import *
|
|
from .webdash import *
|
|
from .core import *
|
|
from liteyuki.utils.config import config
|
|
from liteyuki.utils.liteyuki_api import liteyuki_api
|
|
|
|
__author__ = "snowykami"
|
|
__plugin_meta__ = PluginMetadata(
|
|
name="轻雪主程序",
|
|
description="轻雪主程序插件,包含了许多初始化的功能",
|
|
usage="",
|
|
homepage="https://github.com/snowykami/LiteyukiBot",
|
|
extra={
|
|
"liteyuki" : True,
|
|
"toggleable": False,
|
|
}
|
|
)
|
|
|
|
auto_migrate() # 自动迁移数据库
|
|
|
|
sys_lang = get_default_lang()
|
|
nonebot.logger.info(sys_lang.get("main.current_language", LANG=sys_lang.get("language.name")))
|
|
nonebot.logger.info(sys_lang.get("main.enable_webdash", URL=f"http://127.0.0.1:{config.get('port', 20216)}"))
|