From 742ae2405fb9a05c99468f929a556f813f50576e Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Tue, 26 Jul 2022 21:55:59 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E6=9B=B4=E6=8D=A2=E9=9A=8F=E6=9C=BA?= =?UTF-8?q?=E5=9B=BE=E6=8E=A5=E5=8F=A3=EF=BC=8C=E7=A7=BB=E9=99=A4`?= =?UTF-8?q?=E7=82=B9=E9=A4=90`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Paimon_Plugins/{order.py => _order.py} | 4 ++++ Paimon_Plugins/random_img.py | 13 ++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) rename Paimon_Plugins/{order.py => _order.py} (95%) diff --git a/Paimon_Plugins/order.py b/Paimon_Plugins/_order.py similarity index 95% rename from Paimon_Plugins/order.py rename to Paimon_Plugins/_order.py index 8c9bf5f..92a3ab0 100644 --- a/Paimon_Plugins/order.py +++ b/Paimon_Plugins/_order.py @@ -7,6 +7,10 @@ from nonebot.adapters.onebot.v11 import Message, MessageEvent, MessageSegment from nonebot.params import CommandArg from nonebot.plugin import PluginMetadata +""" +由于点餐api已经失效,本功能暂不可用,直到找到其他可用的点餐api +""" + __plugin_meta__ = PluginMetadata( name="点餐", description="点餐查看食物图片", diff --git a/Paimon_Plugins/random_img.py b/Paimon_Plugins/random_img.py index cd08af0..fc427c0 100644 --- a/Paimon_Plugins/random_img.py +++ b/Paimon_Plugins/random_img.py @@ -62,21 +62,21 @@ async def ecy_img_handler(bot: Bot, event: MessageEvent, regexGroup=RegexGroup() 'https://www.dmoe.cc/random.php', 'https://acg.toubiec.cn/random.php', 'https://api.ixiaowai.cn/api/api.php', - 'https://iw233.cn/api.php?sort=iw233' + 'https://dev.iw233.cn/api.php?sort=iw233' ] img_type = regexGroup[0] if img_type in ['二次元', '二刺螈']: url = random.choice(urls) elif img_type == '银发': - url = 'https://iw233.cn/api.php?sort=yin' + url = 'https://dev.iw233.cn/api.php?sort=yin' elif img_type == '兽耳': - url = 'https://iw233.cn/api.php?sort=cat' + url = 'https://dev.iw233.cn/api.php?sort=cat' elif img_type == '星空': - url = 'https://iw233.cn/api.php?sort=xing' + url = 'https://dev.iw233.cn/api.php?sort=xing' elif img_type == '竖屏': - url = 'https://iw233.cn/api.php?sort=mp' + url = 'https://dev.iw233.cn/api.php?sort=mp' elif img_type == '横屏': - url = 'https://iw233.cn/api.php?sort=pc' + url = 'https://dev.iw233.cn/api.php?sort=pc' else: url = '' if not ecy_lmt.check(get_message_id(event)): @@ -91,7 +91,6 @@ async def ecy_img_handler(bot: Bot, event: MessageEvent, regexGroup=RegexGroup() @auto_withdraw(30) async def ys_img_handler(event: MessageEvent): urls = [ - 'https://api.dujin.org/img/yuanshen/', 'https://api.dreamofice.cn/random-v0/img.php?game=ys' ] if not ys_lmt.check(get_message_id(event)):