mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 12:55:38 +00:00
commit
cb11fec650
@ -222,13 +222,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "meizi",
|
"name": "meizi",
|
||||||
"version": "1.3",
|
"version": "1.4",
|
||||||
"section": "profile",
|
"section": "profile",
|
||||||
"maintainer": "TNTcraftHIM",
|
"maintainer": "TNTcraftHIM",
|
||||||
"size": "2.6 kb",
|
"size": "3.7 kb",
|
||||||
"supported": true,
|
"supported": true,
|
||||||
"des-short": "多网站随机获取写真",
|
"des-short": "多网站随机获取写真",
|
||||||
"des": "从不同的网站中调取妹子写真,但是无漏点,放心使用(安全版ghs)。命令:meizi。"
|
"des": "从不同的网站中调取妹子写真/视频,但是无漏点,放心使用(安全版ghs)。命令:meizi,meizisp。"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "acg-multi",
|
"name": "acg-multi",
|
||||||
|
29
meizi.py
29
meizi.py
@ -61,3 +61,32 @@ async def meizi(context):
|
|||||||
await context.edit("出错了呜呜呜 ~ 试了好多好多次都无法访问到 API 服务器(没有妹子看啦!) 。")
|
await context.edit("出错了呜呜呜 ~ 试了好多好多次都无法访问到 API 服务器(没有妹子看啦!) 。")
|
||||||
sleep(2)
|
sleep(2)
|
||||||
await context.delete()
|
await context.delete()
|
||||||
|
|
||||||
|
@listener(is_plugin=True, outgoing=True, command="meizisp",
|
||||||
|
description="随机获取妹子的视频")
|
||||||
|
async def meizisp(context):
|
||||||
|
await context.edit("获取中 . . .")
|
||||||
|
status = False
|
||||||
|
for _ in range (20): #最多重试20次
|
||||||
|
vid = get("https://mv.52.mk/video.php")
|
||||||
|
if vid.status_code == 200:
|
||||||
|
with open(r'vid.mp4', 'wb') as f:
|
||||||
|
await context.edit("正在上传视频")
|
||||||
|
f.write(vid.content)
|
||||||
|
await context.client.send_file(
|
||||||
|
context.chat_id,
|
||||||
|
"vid.mp4",
|
||||||
|
reply_to=None,
|
||||||
|
caption=None
|
||||||
|
)
|
||||||
|
try:
|
||||||
|
remove('vid.mp4')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
status = True
|
||||||
|
break #成功了就赶紧结束啦!
|
||||||
|
|
||||||
|
if not status:
|
||||||
|
await context.edit("出错了呜呜呜 ~ 试了好多好多次都无法访问到 API 服务器(没有妹子视频看啦!) 。")
|
||||||
|
sleep(2)
|
||||||
|
await context.delete()
|
Loading…
Reference in New Issue
Block a user