From 657c5e0f379576f7163d9f3dd4ea4271ca53dc9a Mon Sep 17 00:00:00 2001 From: c3b2a <62082214+c3b2a@users.noreply.github.com> Date: Wed, 20 Jan 2021 20:12:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=9E=E5=A4=8D=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8A=9F=E8=83=BD=20(#98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update keyword.py * Update list.json --- keyword.py | 2 ++ list.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/keyword.py b/keyword.py index 6ac2dd4..07decd4 100644 --- a/keyword.py +++ b/keyword.py @@ -101,6 +101,8 @@ async def send_reply(chat_id, reply_msg, context): re_msg = re_msg.replace(f"${k}", str(v)) if re_type == "plain": await bot.send_message(chat_id, re_msg) + elif re_type == "reply": + await bot.send_message(chat_id, re_msg, reply_to = context.id) elif re_type == "file" and len(re_msg.split()) >= 2: if not path.exists("/tmp"): mkdir("/tmp") re_data = re_msg.split() diff --git a/list.json b/list.json index e6960c7..55de896 100644 --- a/list.json +++ b/list.json @@ -362,10 +362,10 @@ }, { "name": "keyword", - "version": "1.6", + "version": "1.7", "section": "chat", "maintainer": "c3b2a", - "size": "15.4 kb", + "size": "15.5 kb", "supported": true, "des-short": "群组关键词自动回复插件", "des": "命令: keyword, replyset。"