This commit is contained in:
tt-P607
2025-09-07 12:13:56 +08:00
10 changed files with 63 additions and 18 deletions

View File

@@ -116,7 +116,7 @@ class NoticeHandler:
sub_type = raw_message.get("sub_type")
match sub_type:
case NoticeType.Notify.poke:
if config_api.get_plugin_config(self.plugin_config, "features.poke_enabled", True) and await message_handler.check_allow_to_chat(
if config_api.get_plugin_config(self.plugin_config, "features.enable_poke", True) and await message_handler.check_allow_to_chat(
user_id, group_id, False, False
):
logger.debug("处理戳一戳消息")
@@ -247,7 +247,7 @@ class NoticeHandler:
else:
# 如果配置为忽略不是针对自己的戳一戳则直接返回None
if config_api.get_plugin_config(self.plugin_config, "features.non_self_poke_ignored", False):
if config_api.get_plugin_config(self.plugin_config, "features.ignore_non_self_poke", False):
logger.debug("忽略不是针对自己的戳一戳消息")
return None, None

View File

@@ -1,4 +1,6 @@
{
"manifest_version": 1,
"name": "Set Typing Status",
"description": "一个在LLM生成回复时设置私聊输入状态的插件。",
"version": "1.0.0",

View File

@@ -29,7 +29,6 @@ class SetTypingStatusHandler(BaseEventHandler):
user_id = message.message_info.user_info.user_id
if not user_id:
return HandlerResult(success=False, continue_process=True, message="无法获取用户ID")
try:
params = {"user_id": user_id, "event_type": 1}
await send_api.adapter_command_to_stream(