增加回复信息功能 (#98)

* Update keyword.py

* Update list.json
This commit is contained in:
c3b2a 2021-01-20 20:12:29 +08:00 committed by GitHub
parent 45f6b0d8c8
commit 657c5e0f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -101,6 +101,8 @@ async def send_reply(chat_id, reply_msg, context):
re_msg = re_msg.replace(f"${k}", str(v)) re_msg = re_msg.replace(f"${k}", str(v))
if re_type == "plain": if re_type == "plain":
await bot.send_message(chat_id, re_msg) 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: elif re_type == "file" and len(re_msg.split()) >= 2:
if not path.exists("/tmp"): mkdir("/tmp") if not path.exists("/tmp"): mkdir("/tmp")
re_data = re_msg.split() re_data = re_msg.split()

View File

@ -362,10 +362,10 @@
}, },
{ {
"name": "keyword", "name": "keyword",
"version": "1.6", "version": "1.7",
"section": "chat", "section": "chat",
"maintainer": "c3b2a", "maintainer": "c3b2a",
"size": "15.4 kb", "size": "15.5 kb",
"supported": true, "supported": true,
"des-short": "群组关键词自动回复插件", "des-short": "群组关键词自动回复插件",
"des": "命令: keyword, replyset。" "des": "命令: keyword, replyset。"