This commit is contained in:
Refound-445 2025-01-31 19:27:43 +08:00
parent 4b450c4e8f
commit 3cf6059feb
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -150,9 +150,12 @@ 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(),
current_bot.get(),
bot,
current_matcher.get().state,
seg,
)