diff --git a/nonebot_plugin_eitherchoice/__init__.py b/nonebot_plugin_eitherchoice/__init__.py index 20277ed..2b4023c 100644 --- a/nonebot_plugin_eitherchoice/__init__.py +++ b/nonebot_plugin_eitherchoice/__init__.py @@ -1,5 +1,5 @@ from nonebot import require -from nonebot.plugin import PluginMetadata +from nonebot.plugin import PluginMetadata, inherit_supported_adapters require("nonebot_plugin_htmlrender") require("nonebot_plugin_saa") @@ -7,7 +7,7 @@ from . import __main__ as __main__ # noqa: E402 from .config import ConfigModel # noqa: E402 -__version__ = "0.1.3" +__version__ = "0.2.0" __plugin_meta__ = PluginMetadata( name="EitherChoice", description="让 AI 帮你对比两件事物", @@ -21,14 +21,6 @@ type="application", homepage="https://github.com/lgc-NB2Dev/nonebot-plugin-eitherchoice", config=ConfigModel, - supported_adapters={ - "~onebot.v11", - "~onebot.v12", - "~kaiheila", - "~qqguild", - "~telegram", - "~feishu", - "~red", - }, + supported_adapters=inherit_supported_adapters("nonebot_plugin_saa"), extra={"License": "MIT", "Author": "student_2333"}, ) diff --git a/pdm.lock b/pdm.lock index 120b078..877e592 100644 --- a/pdm.lock +++ b/pdm.lock @@ -6,7 +6,7 @@ groups = ["default", "dev"] cross_platform = true static_urls = false lock_version = "4.3" -content_hash = "sha256:e754e7cb312237483054e800c84919a42cba392952d213a0d477552c1e5d8ffd" +content_hash = "sha256:ae058c0aead7076878c1924898ac015e85f9d7598e099a30d7cda2294a6fdd66" [[package]] name = "aiofiles" @@ -811,7 +811,7 @@ files = [ [[package]] name = "nonebot-plugin-send-anything-anywhere" -version = "0.3.0" +version = "0.3.2" requires_python = ">=3.8,<4.0" summary = "An adaptor for nonebot2 adaptors" dependencies = [ @@ -821,13 +821,13 @@ dependencies = [ "strenum<0.5.0,>=0.4.8", ] files = [ - {file = "nonebot_plugin_send_anything_anywhere-0.3.0-py3-none-any.whl", hash = "sha256:30ed3346e9acd0b80f7be5306b70f581d6a20f90388e46ccc984303d4c4449be"}, - {file = "nonebot_plugin_send_anything_anywhere-0.3.0.tar.gz", hash = "sha256:1ec98b48c842cdc656fbc9d90ee44a60eb77761d94843cf03cc1327f1b04773c"}, + {file = "nonebot_plugin_send_anything_anywhere-0.3.2-py3-none-any.whl", hash = "sha256:2dac60653f49aa25f3a08eb75544ecb155e30b2496f1f7a16e27ddc76ff09796"}, + {file = "nonebot_plugin_send_anything_anywhere-0.3.2.tar.gz", hash = "sha256:19a54c8f69d01f2000b1f2536eea4076acd8fe219f7f0d9060a8120bd7052d52"}, ] [[package]] name = "nonebot2" -version = "2.1.0" +version = "2.1.1" requires_python = ">=3.8,<4.0" summary = "An asynchronous python bot framework." dependencies = [ @@ -839,24 +839,24 @@ dependencies = [ "yarl<2.0.0,>=1.7.2", ] files = [ - {file = "nonebot2-2.1.0-py3-none-any.whl", hash = "sha256:e14bfbb962df72a9beac5035291594ad6e549c004b2ff5d28db97d0fdc3abf45"}, - {file = "nonebot2-2.1.0.tar.gz", hash = "sha256:f29cb773833ab5000557090edcbc5a6eabaf6e04a224c86761a4ddb6b1e0bd18"}, + {file = "nonebot2-2.1.1-py3-none-any.whl", hash = "sha256:fe780eee116b2798e1db043b92aefa1b1f2bf1026725388a1dbbb211bbb4ef4b"}, + {file = "nonebot2-2.1.1.tar.gz", hash = "sha256:e3937c28bca26f2f8717fedd8594e0cfc79faa2d99a3209c4a63706727d700f8"}, ] [[package]] name = "nonebot2" -version = "2.1.0" +version = "2.1.1" extras = ["fastapi"] requires_python = ">=3.8,<4.0" summary = "An asynchronous python bot framework." dependencies = [ "fastapi<1.0.0,>=0.93.0", - "nonebot2==2.1.0", + "nonebot2==2.1.1", "uvicorn[standard]<1.0.0,>=0.20.0", ] files = [ - {file = "nonebot2-2.1.0-py3-none-any.whl", hash = "sha256:e14bfbb962df72a9beac5035291594ad6e549c004b2ff5d28db97d0fdc3abf45"}, - {file = "nonebot2-2.1.0.tar.gz", hash = "sha256:f29cb773833ab5000557090edcbc5a6eabaf6e04a224c86761a4ddb6b1e0bd18"}, + {file = "nonebot2-2.1.1-py3-none-any.whl", hash = "sha256:fe780eee116b2798e1db043b92aefa1b1f2bf1026725388a1dbbb211bbb4ef4b"}, + {file = "nonebot2-2.1.1.tar.gz", hash = "sha256:e3937c28bca26f2f8717fedd8594e0cfc79faa2d99a3209c4a63706727d700f8"}, ] [[package]] diff --git a/pyproject.toml b/pyproject.toml index 2a306f9..90969d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [project] name = "nonebot-plugin-eitherchoice" -version = "0.2.0" +version = "0.2.0.post1" description = "Let AI help you compare two things." authors = [{ name = "student_2333", email = "lgc2333@126.com" }] dependencies = [ - "nonebot2>=2.0.0", + "nonebot2>=2.1.1", "nonebot-plugin-htmlrender>=0.2.1", - "nonebot-plugin-send-anything-anywhere>=0.3.0", + "nonebot-plugin-send-anything-anywhere>=0.3.2", "pydantic>=1.10.4", "httpx[http2]>=0.24.1", "beautifulsoup4>=4.12.2",