mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-02-07 02:46:10 +08:00
* 优化更新
* 代码不够黑,新增一个空行
* ?
* 空格?
* 新年新气象,莫生气
* 又是空格
* 附和:zhDateTime1.1.1 修复过于愚蠢导致的问题
* ⭐增设版权声明,更新授权年份,主题色!
* ?怎么没删
* 更新 zhDateTime 库版本,主题色往文档里塞
* 我愚蠢了
55 lines
1.9 KiB
Python
Executable File
55 lines
1.9 KiB
Python
Executable File
"""
|
|
MIT License
|
|
|
|
Copyright (c) 2025 Asankilp & LiteyukiStudio
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
"""
|
|
|
|
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("マルショは、高性能ですから!")
|