mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-23 13:37:43 +00:00
yvlu 更换 bot
This commit is contained in:
parent
a29616373c
commit
4f74c53edc
@ -682,7 +682,7 @@
|
||||
},
|
||||
{
|
||||
"name": "yvlu",
|
||||
"version": "1.214",
|
||||
"version": "1.22",
|
||||
"section": "chat",
|
||||
"maintainer": "xtaodada",
|
||||
"size": "10.4 kb",
|
||||
|
4
yvlu.py
4
yvlu.py
@ -123,14 +123,14 @@ async def yv_lu(context):
|
||||
reply = context
|
||||
else:
|
||||
return await context.edit('你需要回复一条消息或者输入一串字符。')
|
||||
async with bot.conversation('QuotLyBot') as conversation:
|
||||
async with bot.conversation('PagerMaid_QuotLy_bot') as conversation:
|
||||
try:
|
||||
send_for = await reply.forward_to(conversation.chat_id)
|
||||
except YouBlockedUserError:
|
||||
if await context.client(UnblockRequest(id=conversation.chat_id)):
|
||||
send_for = await reply.forward_to(conversation.chat_id)
|
||||
else:
|
||||
return await context.edit("请先解封 @QuotLyBot ")
|
||||
return await context.edit("请先解封 @PagerMaid_QuotLy_bot ")
|
||||
except ForbiddenError:
|
||||
return await context.edit("无权限转发消息。")
|
||||
except FloodWaitError:
|
||||
|
Loading…
Reference in New Issue
Block a user