mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-31 23:44:20 +08:00
31 lines
827 B
Python
Executable File
31 lines
827 B
Python
Executable File
from nonebot.plugin import require
|
|
|
|
require("nonebot_plugin_alconna")
|
|
require("nonebot_plugin_localstore")
|
|
|
|
import nonebot_plugin_localstore as store # type: ignore
|
|
from nonebot import get_driver, logger # type: ignore
|
|
|
|
from .config import config
|
|
|
|
# from .hunyuan import *
|
|
from .dev import *
|
|
from .marsho import *
|
|
from .metadata import metadata
|
|
|
|
__author__ = "Asankilp"
|
|
__plugin_meta__ = metadata
|
|
|
|
driver = get_driver()
|
|
|
|
|
|
@driver.on_startup
|
|
async def _():
|
|
logger.info("MarshoAI 已经加载~🐾")
|
|
logger.info(f"Marsho 的插件数据存储于 : {str(store.get_plugin_data_dir())} 哦~🐾")
|
|
if config.marshoai_token == "":
|
|
logger.warning("token 未配置。可能无法进行聊天。")
|
|
else:
|
|
logger.info("token 已配置~!🐾")
|
|
logger.info("マルショは、高性能ですから!")
|