diff --git a/pyproject.toml b/pyproject.toml index 79767af..0e18032 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-plugin-bing-chat" -version = "0.7.7" +version = "0.7.8" description = "基于nonebot2的bing-chat软件" authors = [{ name = "Harry", email = "Harry0259@163.com" }] readme = "README.md" diff --git a/src/plugins/nonebot_plugin_bing_chat/common/__init__.py b/src/plugins/nonebot_plugin_bing_chat/common/__init__.py index 78b82cd..46d78f6 100644 --- a/src/plugins/nonebot_plugin_bing_chat/common/__init__.py +++ b/src/plugins/nonebot_plugin_bing_chat/common/__init__.py @@ -1,6 +1,5 @@ import json import shutil -import importlib from datetime import datetime, timedelta from nonebot import require, get_driver @@ -92,7 +91,7 @@ def init() -> None: if any(i == 'image' for i, _ in plugin_config.bingchat_display_content_types): require('nonebot_plugin_apscheduler') try: - importlib.import_module('nonebot_plugin_htmlrender') + require('nonebot_plugin_htmlrender') except Exception as exc: raise RuntimeError( '请使用 pip install nonebot-plugin-bing-chat[image] markdown渲染插件'