mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-09-27 04:41:56 +08:00
This commit is contained in:
parent
607c6e889b
commit
00cab72500
@ -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="一个基于图像分类模型的简单插件~",
|
||||
|
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user