Plug-in: yvlu -> Fix some issues

This commit is contained in:
汐洛呐 2022-06-26 12:11:03 +00:00 committed by GitHub
parent 7820cfe8b0
commit b35fdcb875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -232,7 +232,7 @@
},
{
"name": "yvlu",
"version": "1.22",
"version": "1.23",
"section": "chat",
"maintainer": "xtaodada, xiluo",
"size": "10.4 kb",

View File

@ -13,7 +13,6 @@ from pagermaid.utils import alias_command
WAITING = 0
MSG = None
converstation = await bot.get_chat('PagerMaid_QuotLy_bot')
@listener(is_plugin=False, incoming=True, outgoing=False, igonre_edited=True, privates_only=False)
@ -132,10 +131,10 @@ async def yv_lu_process_sticker(name, photo, sticker, path):
@listener(is_plugin=True, outgoing=True, command=alias_command("yvlu"),
description="将回复的消息或者输入的字符串转换成语录")
async def yv_lu(app, context):
global converstation
converstation = await bot.get_chat('PagerMaid_QuotLy_bot')
reply = await context.get_reply_message()
if not reply:
message = context.arguments
message = context.parameter
if message:
await context.edit(message)
reply = context