更新Bangumi新闻信息格式,添加换行符;添加插件元数据定义以增强基本功能插件描述

This commit is contained in:
Asankilp 2024-12-31 18:34:22 +08:00
parent aca5c2bd04
commit 2fdc46ac9b
2 changed files with 9 additions and 2 deletions

View File

@ -49,7 +49,7 @@ async def get_bangumi_news() -> str:
for item in items:
name = item["name_cn"]
info += f"{name}"
info += ""
info += "\n"
return info
except Exception as e:
traceback.print_exc()

View File

@ -2,7 +2,14 @@ import os
from zhDateTime import DateTime
from nonebot_plugin_marshoai.plugin import String, on_function_call
from nonebot_plugin_marshoai.plugin import PluginMetadata, String, on_function_call
# 定义插件元数据
__marsho_meta__ = PluginMetadata(
name="基本功能",
author="MarshoAI",
description="这个插件提供基本的功能,比如获取当前时间和日期。",
)
@on_function_call(description="获取当前时间,日期和星期")