mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 00:35:36 +00:00
diss 更新 API 地址
This commit is contained in:
parent
721cb749fd
commit
a29616373c
4
diss.py
4
diss.py
@ -9,7 +9,7 @@ from pagermaid.utils import alias_command, client
|
|||||||
async def diss(context):
|
async def diss(context):
|
||||||
await context.edit("获取中 . . .")
|
await context.edit("获取中 . . .")
|
||||||
for _ in range(20): # 最多尝试20次
|
for _ in range(20): # 最多尝试20次
|
||||||
req = await client.get("https://xtaolabs.com/api/diss/?level=min&from=tntcrafthim")
|
req = await client.get("https://api.yanyuwangluo.cn/zuan/api.php?level=min&from=tntcrafthim")
|
||||||
if req.status_code == 200:
|
if req.status_code == 200:
|
||||||
res = req.text
|
res = req.text
|
||||||
return await context.edit(res, parse_mode='html', link_preview=False)
|
return await context.edit(res, parse_mode='html', link_preview=False)
|
||||||
@ -25,7 +25,7 @@ async def diss(context):
|
|||||||
async def biss(context):
|
async def biss(context):
|
||||||
await context.edit("获取中 . . .")
|
await context.edit("获取中 . . .")
|
||||||
for _ in range(20): # 最多尝试20次
|
for _ in range(20): # 最多尝试20次
|
||||||
req = await client.get("https://xtaolabs.com/api/diss/?from=tntcrafthim")
|
req = await client.get("https://api.yanyuwangluo.cn/zuan/api.php?from=tntcrafthim")
|
||||||
if req.status_code == 200:
|
if req.status_code == 200:
|
||||||
res = req.text
|
res = req.text
|
||||||
return await context.edit(res, parse_mode='html', link_preview=False)
|
return await context.edit(res, parse_mode='html', link_preview=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user