Update keyword.py

This commit is contained in:
c3b2a 2021-02-15 10:32:18 +08:00 committed by GitHub
parent 26877375fd
commit d0c5afcfce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -638,13 +638,13 @@ async def reply_set(context):
if params[1] == "0":
settings_dict["status"] = "0"
redis.set(redis_data, save_rules(settings_dict, None))
await context.edit("已关闭此群组的关键词回复")
await context.edit("已关闭此聊天的关键词回复")
await del_msg(context, 5)
return
elif params[1] == "1":
settings_dict["status"] = "1"
redis.set(redis_data, save_rules(settings_dict, None))
await context.edit("已开启此群组的关键词回复")
await context.edit("已开启此聊天的关键词回复")
await del_msg(context, 5)
return
elif params[1] == "clear":