mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 03:19:18 +00:00
xjj 生成小姐姐视频
This commit is contained in:
parent
0c3ab78b93
commit
c357742ec8
5
xjj/DES.md
Normal file
5
xjj/DES.md
Normal file
@ -0,0 +1,5 @@
|
||||
# 生成小姐姐视频
|
||||
|
||||
```
|
||||
,xjj
|
||||
```
|
30
xjj/main.py
Normal file
30
xjj/main.py
Normal file
@ -0,0 +1,30 @@
|
||||
from pagermaid.listener import listener
|
||||
from pagermaid.enums import Message, AsyncClient
|
||||
|
||||
|
||||
@listener(
|
||||
command="xjj",
|
||||
description="小姐姐视频"
|
||||
)
|
||||
async def xjj(message: Message, client: AsyncClient):
|
||||
if message.chat and message.chat.id == -1001441461877:
|
||||
# 用户群禁止使用此功能
|
||||
await message.edit("本群禁止使用此功能。")
|
||||
return
|
||||
await message.edit("小姐姐视频生成中 . . .")
|
||||
try:
|
||||
res = await client.get('https://cao3.ml/get/get1.php', timeout=10.0)
|
||||
if res.status_code == 200:
|
||||
url = res.text
|
||||
url = url.split("?tag=")[0]
|
||||
try:
|
||||
await message.reply_video(
|
||||
url,
|
||||
quote=False,
|
||||
reply_to_message_id=message.reply_to_message_id or message.reply_to_top_message_id
|
||||
)
|
||||
await message.safe_delete()
|
||||
except Exception as e:
|
||||
await message.edit(f"出错了呜呜呜 ~ {e.__class__.__name__}")
|
||||
except Exception as e:
|
||||
await message.edit(f"出错了呜呜呜 ~ {e.__class__.__name__}")
|
Loading…
Reference in New Issue
Block a user