diss 更新 API 地址

This commit is contained in:
Xtao_dada 2022-02-25 13:15:49 +00:00
parent 721cb749fd
commit a29616373c
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ from pagermaid.utils import alias_command, client
async def diss(context):
await context.edit("获取中 . . .")
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:
res = req.text
return await context.edit(res, parse_mode='html', link_preview=False)
@ -25,7 +25,7 @@ async def diss(context):
async def biss(context):
await context.edit("获取中 . . .")
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:
res = req.text
return await context.edit(res, parse_mode='html', link_preview=False)

View File

@ -242,7 +242,7 @@
},
{
"name": "diss",
"version": "1.113",
"version": "1.114",
"section": "chat",
"maintainer": "TNTcraftHIM",
"size": "1.4 kb",