mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-16 07:39:26 +00:00
Plug-in: yvlu -> Fix some issues
This commit is contained in:
parent
7820cfe8b0
commit
b35fdcb875
@ -232,7 +232,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "yvlu",
|
"name": "yvlu",
|
||||||
"version": "1.22",
|
"version": "1.23",
|
||||||
"section": "chat",
|
"section": "chat",
|
||||||
"maintainer": "xtaodada, xiluo",
|
"maintainer": "xtaodada, xiluo",
|
||||||
"size": "10.4 kb",
|
"size": "10.4 kb",
|
||||||
|
@ -13,7 +13,6 @@ from pagermaid.utils import alias_command
|
|||||||
|
|
||||||
WAITING = 0
|
WAITING = 0
|
||||||
MSG = None
|
MSG = None
|
||||||
converstation = await bot.get_chat('PagerMaid_QuotLy_bot')
|
|
||||||
|
|
||||||
|
|
||||||
@listener(is_plugin=False, incoming=True, outgoing=False, igonre_edited=True, privates_only=False)
|
@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"),
|
@listener(is_plugin=True, outgoing=True, command=alias_command("yvlu"),
|
||||||
description="将回复的消息或者输入的字符串转换成语录")
|
description="将回复的消息或者输入的字符串转换成语录")
|
||||||
async def yv_lu(app, context):
|
async def yv_lu(app, context):
|
||||||
global converstation
|
converstation = await bot.get_chat('PagerMaid_QuotLy_bot')
|
||||||
reply = await context.get_reply_message()
|
reply = await context.get_reply_message()
|
||||||
if not reply:
|
if not reply:
|
||||||
message = context.arguments
|
message = context.parameter
|
||||||
if message:
|
if message:
|
||||||
await context.edit(message)
|
await context.edit(message)
|
||||||
reply = context
|
reply = context
|
||||||
|
Loading…
Reference in New Issue
Block a user