mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-16 07:05:24 +00:00
diss 儒雅随和版祖安语录 (#2)
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
This commit is contained in:
parent
7833d7ba81
commit
3cf21d366e
12
diss/main.py
Normal file
12
diss/main.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from pyrogram import Client
|
||||||
|
from pagermaid.listener import listener
|
||||||
|
from pagermaid.utils import Message, client, edit_delete
|
||||||
|
|
||||||
|
|
||||||
|
@listener(command="diss", description="儒雅随和版祖安语录。")
|
||||||
|
async def diss(_: Client, message: Message):
|
||||||
|
for i in range(5): # 最多尝试5次
|
||||||
|
req = await client.get("https://api.oddfar.com/yl/q.php?c=1009&encode=text")
|
||||||
|
if req.status_code == 200:
|
||||||
|
return await message.edit(req.text)
|
||||||
|
await edit_delete(message, "出错了呜呜呜 ~ 试了好多好多次都无法访问到 API 服务器 。")
|
10
list.json
10
list.json
@ -149,6 +149,16 @@
|
|||||||
"supported": true,
|
"supported": true,
|
||||||
"des-short": "微博,知乎,抖音实时热搜。",
|
"des-short": "微博,知乎,抖音实时热搜。",
|
||||||
"des": "命令:wbrs,zhrs,dyrs。"
|
"des": "命令:wbrs,zhrs,dyrs。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "diss",
|
||||||
|
"version": "1.0",
|
||||||
|
"section": "daily",
|
||||||
|
"maintainer": "xtaodada",
|
||||||
|
"size": "700 b",
|
||||||
|
"supported": true,
|
||||||
|
"des-short": "儒雅随和版祖安语录。",
|
||||||
|
"des": "儒雅随和版祖安语录。"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user