up
Some checks are pending
Pre Commit Check / pre-commit (push) Waiting to run

This commit is contained in:
Refound-445 2025-01-31 19:37:05 +08:00
parent 607c6e889b
commit 00cab72500
2 changed files with 2 additions and 5 deletions

View File

@ -9,7 +9,7 @@ require("nonebot_plugin_uninfo")
from . import handler as handler
from .config import Config
__version__ = "2.3.5.post5"
__version__ = "2.3.5.post6"
__plugin_meta__ = PluginMetadata(
name="自动撤回奶龙",
description="一个基于图像分类模型的简单插件~",

View File

@ -150,12 +150,9 @@ def source_extractor(t: Type[TS]):
@source_extractor(Image)
async def _(seg: Image):
bot =current_bot.get()
if bot.adapter.get_name()=="OneBot V11":
seg.url = (await bot.get_image(file=seg.id))["data"]["url"].replace("https://", "http://")
image = await image_fetch(
current_event.get(),
bot,
current_bot.get(),
current_matcher.get().state,
seg,
)