mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 10:47:14 +00:00
yvlu 支持不回复消息
This commit is contained in:
parent
e26bc543dc
commit
fd0ea183c2
@ -682,13 +682,13 @@
|
||||
},
|
||||
{
|
||||
"name": "yvlu",
|
||||
"version": "1.2",
|
||||
"version": "1.21",
|
||||
"section": "chat",
|
||||
"maintainer": "xtaodada",
|
||||
"size": "10.3 kb",
|
||||
"size": "10.4 kb",
|
||||
"supported": true,
|
||||
"des-short": "将回复的消息转换成语录图片",
|
||||
"des": "将回复的消息转换成语录图片。\n指令:-yvlu -yvlu_"
|
||||
"des": "将回复的消息或者输入字符串转换成语录图片。\n指令:-yvlu -yvlu_"
|
||||
},
|
||||
{
|
||||
"name": "antichannelmsg",
|
||||
|
9
yvlu.py
9
yvlu.py
@ -112,11 +112,16 @@ async def yv_lu_process_sticker(name, photo, sticker, path):
|
||||
|
||||
|
||||
@listener(is_plugin=True, outgoing=True, command=alias_command("yvlu"),
|
||||
description="将回复的消息转换成语录")
|
||||
description="将回复的消息或者输入的字符串转换成语录")
|
||||
async def yv_lu(context):
|
||||
reply = await context.get_reply_message()
|
||||
if not reply:
|
||||
return await context.edit('你需要回复一条消息。')
|
||||
message = context.arguments
|
||||
if message:
|
||||
await context.edit(message)
|
||||
reply = context
|
||||
else:
|
||||
return await context.edit('你需要回复一条消息或者输入一串字符。')
|
||||
async with bot.conversation('QuotLyBot') as conversation:
|
||||
try:
|
||||
send_for = await reply.forward_to(conversation.chat_id)
|
||||
|
Loading…
Reference in New Issue
Block a user