nonebot-plugin-marshoai/nonebot_plugin_marshoai/__init__.py

25 lines
746 B
Python
Raw Normal View History

from nonebot.plugin import require
2024-09-17 20:20:31 +08:00
require("nonebot_plugin_alconna")
require("nonebot_plugin_localstore")
2024-09-17 20:20:31 +08:00
from .azure import *
from nonebot import get_driver, logger
from .config import config
from .metadata import metadata
import nonebot_plugin_localstore as store
2024-09-17 20:20:31 +08:00
__author__ = "Asankilp"
__plugin_meta__ = metadata
2024-09-17 20:20:31 +08:00
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("マルショは、高性能ですから!")