mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-02-12 15:39:58 +08:00
✨ 更新Bangumi新闻信息格式,添加换行符;添加插件元数据定义以增强基本功能插件描述
This commit is contained in:
parent
aca5c2bd04
commit
2fdc46ac9b
@ -49,7 +49,7 @@ async def get_bangumi_news() -> str:
|
|||||||
for item in items:
|
for item in items:
|
||||||
name = item["name_cn"]
|
name = item["name_cn"]
|
||||||
info += f"《{name}》"
|
info += f"《{name}》"
|
||||||
info += ""
|
info += "\n"
|
||||||
return info
|
return info
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
@ -2,7 +2,14 @@ import os
|
|||||||
|
|
||||||
from zhDateTime import DateTime
|
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="获取当前时间,日期和星期")
|
@on_function_call(description="获取当前时间,日期和星期")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user