From b35fdcb8756d87737d69f6700f1addbdfa4e8ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=90=E6=B4=9B=E5=91=90?= Date: Sun, 26 Jun 2022 12:11:03 +0000 Subject: [PATCH] Plug-in: yvlu -> Fix some issues --- list.json | 2 +- yvlu/main.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/list.json b/list.json index 85280d6..a614557 100644 --- a/list.json +++ b/list.json @@ -232,7 +232,7 @@ }, { "name": "yvlu", - "version": "1.22", + "version": "1.23", "section": "chat", "maintainer": "xtaodada, xiluo", "size": "10.4 kb", diff --git a/yvlu/main.py b/yvlu/main.py index ca3df2e..2cf65a5 100644 --- a/yvlu/main.py +++ b/yvlu/main.py @@ -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