优化API与代码

This commit is contained in:
TNTcraftHIM 2020-08-25 00:47:35 +08:00
parent 80edf5ed53
commit 2396bf655a
3 changed files with 10 additions and 7 deletions

View File

@ -225,7 +225,7 @@
"version": "1.3",
"section": "profile",
"maintainer": "TNTcraftHIM",
"size": "2.6 kb",
"size": "2.9 kb",
"supported": true,
"des-short": "多网站随机获取写真",
"des": "从不同的网站中调取妹子写真但是无漏点放心使用安全版ghs。命令meizi。"

View File

@ -18,11 +18,14 @@ async def meizi(context):
elif website == 1:
img = get("https://api.helloworld.la/xiezhen_xinggan.php")
elif website == 2:
img = get("https://api.qicaiyun.top/sjbz/api.php?lx=meizi")
# img = get("https://cdn.seovx.com/?mom=302") 不够涩
img = get("https://api.66mz8.com/api/rand.tbimg.php")
elif website == 3:
img = get("http://api.btstu.cn/sjbz/?lx=meizi")
# img = get("http://api.btstu.cn/sjbz/?lx=meizi") 不够涩
img = get("https://api.isoyu.com/mm_images.php")
elif website == 4:
img = get("https://cdn.seovx.com/?mom=302")
# img = get("https://api.qicaiyun.top/sjbz/api.php?lx=meizi") 不够涩
img = get("https://uploadbeta.com/api/pictures/random/?key=%E5%A5%B3")
elif website == 5:
img = get("https://uploadbeta.com/api/pictures/random/?key=%E5%A6%B9%E5%AD%90")
elif website == 6:
@ -30,13 +33,13 @@ async def meizi(context):
elif website == 7:
img = get("https://uploadbeta.com/api/pictures/random/?key=%E7%BE%8E%E5%A5%B3")
elif website == 8:
img = get("https://api.941ka.cn/api/mnxz")
img = get("https://api.diskgirl.com/image/api.php?t=xinggan&v=" + str(random.uniform(0, 100)))
elif website == 9:
img = get("https://api.lyiqk.cn/sexylady")
elif website == 10:
img = get("https://api.pingping6.com/tools/acg3/index.php")
elif website == 11:
img = get("https://api.pingping6.com/tools/acg3")
img = get("https://api.uomg.com/api/rand.img3")
elif website == 12:
img = get("https://api.diskgirl.com/image/api.php?t=&v=0.9451485087333713")
elif website == 13:

View File

@ -46,7 +46,7 @@ async def yxh(context):
try:
await context.edit("生成中 . . .")
text = f"{context.parameter[0]}{context.parameter[1]}是怎么回事呢?{context.parameter[0]}相信大家都很熟悉,但是{context.parameter[0]}{context.parameter[1]}是怎么回事呢,下面就让小编带大家一起了解吧。\n{context.parameter[0]}{context.parameter[1]},其实就是{context.parameter[2]},大家可能会很惊讶{context.parameter[0]}怎么会{context.parameter[1]}呢?但事实就是这样,小编也感到非常惊讶。\n这就是关于{context.parameter[0]}{context.parameter[1]}的事情了,大家有什么想法呢,欢迎在评论区告诉小编一起讨论哦!"
except:
except IndexError:
await context.edit("使用方法:-yxh <主体> <事件> <原因>")
return
await context.edit(text)