mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
修复pix无图时不会提醒而是出错
This commit is contained in:
parent
a380fcb680
commit
aa35a16610
@ -252,6 +252,7 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
|
|||||||
* 对nonebot.beta4中PluginMeta进行解析
|
* 对nonebot.beta4中PluginMeta进行解析
|
||||||
* 修改webui元祖类型无法正确转换类型
|
* 修改webui元祖类型无法正确转换类型
|
||||||
* 查看订阅以图片形式发送
|
* 查看订阅以图片形式发送
|
||||||
|
* 修复pix无图时不会提醒而是出错
|
||||||
|
|
||||||
### 2022/7/30
|
### 2022/7/30
|
||||||
|
|
||||||
|
|||||||
@ -149,8 +149,8 @@ async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg()):
|
|||||||
for _ in range(num):
|
for _ in range(num):
|
||||||
img_url = None
|
img_url = None
|
||||||
author = None
|
author = None
|
||||||
# if not all_image:
|
if not all_image:
|
||||||
# await pix.finish("坏了...发完了,没图了...")
|
await pix.finish("坏了...发完了,没图了...")
|
||||||
img = random.choice(all_image)
|
img = random.choice(all_image)
|
||||||
all_image.remove(img)
|
all_image.remove(img)
|
||||||
if isinstance(img, OmegaPixivIllusts):
|
if isinstance(img, OmegaPixivIllusts):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user