NoneBot 内置了四种主要类型:meta_event、message、notice、request。通常情况下,协议适配器会将事件合理地分类至这四种类型中。如果有其他类型的事件需要响应,可以自行定义新的类型。 事件匹配规则(rule) 事件响应器的匹配规则是一个Rule对象,它是一系列checker的集合,当所有的checker都返回True时,才会触发该响应器。
__plugin_meta__ = PluginMetadata( name="Universal Segment 插件", 18 changes: 7 additions & 11 deletions 18 src/nonebot_plugin_alconna/uniseg/message.py Original file line numberDiff line numberDiff line change @@ -32,7 +32,6 @@ Emoji, Hyper, Image, Media, Reply, Video, Voice, @...
plugin import PluginMetadata from .config import Config, config import httpx import aiofiles import zipfile @@ -17,24 +18,26 @@ __plugin_meta__ = PluginMetadata( name="指令更新NapCat", description="指令更新NapCat", usage="更新nc", usage="""更新nc: 更新napcat并自动重启 重启nc: 重新...
jellyfin-plugin-metashark 2024-12-15 14:47:23 积分:1 smbj 2024-12-15 14:45:46 积分:1 OneTiny 2024-12-15 14:45:17 积分:1 Neditor(富文本编辑器) 2024-12-15 14:37:02 积分:1 vue-tinymce 2024-12-15 14:36:20 积分:1 ...
__plugin_meta__ = PluginMetadata( name="ba-tools", description="BlueArchive的工具箱", 5 changes: 4 additions & 1 deletion 5 nonebot_plugin_ba_tools/utils/common.py Original file line numberDiff line numberDiff line change @@ -4,7 +4,7 @@ import httpx from bs4 import BeautifulSoup,...
__plugin_meta__ = PluginMetadata( name="鸣潮抽卡记录分析", description="鸣潮抽卡记录分析", usage="{插件用法}", type="application", # 发布必填,当前有效类型有:`library`(为其他插件编写提供功能),`application`(向机器人用户提供功能)。 homepage="https://github.com/BraveCowardp/nonebot-...
v2.3.2 Well2333 tagged this 04 Jun 16:38 为plugin meta 新增必填字段 (#43) Assets 2 Source code (zip) 2023-06-04T16:38:24Z Source code (tar.gz) 2023-06-04T16:38:24Z Show all 2 assets Footer © 2024 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs ...
__version__ = "1.1.6" __version__ = "1.1.7" __plugin_meta__ = PluginMetadata( name="狼人杀", description="适用于 Nonebot2 的狼人杀插件",2 changes: 1 addition & 1 deletion 2 pyproject.toml Original file line numberDiff line numberDiff line change @@ -1,6 +1,6 @@ [project...
__plugin_meta__ = PluginMetadata( name="nonebot-plugin-logpile", description="将 nonebot 的日志记录保存到本地文件", usage="", config=Config, ) pc = get_plugin_config(Config) LOG_CONFIG = { "rotation": "00:00", @@ -20,8 +28,9 @@ def file_handler( ) -> List[Dict[str, Any...
__plugin_meta__ = PluginMetadata( name= "批量撤回", description="批量撤回消息", usage="发送 [delete <@qq> 数量]", supported_adapters= {"~onebot.v11"}, type= "application", homepage= "https://github.com/zhongwen-4/nonebot-plugin-batch-withdrawal" ) require("nonebot_plugin_localstore...