Skip to content

Commit

Permalink
update nonebot-plugin-session
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Oct 20, 2023
1 parent c600162 commit 45ff0f4
Show file tree
Hide file tree
Showing 4 changed files with 322 additions and 252 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*__pycache__/
dist/
.idea/
.vscode/
.vscode/
19 changes: 6 additions & 13 deletions nonebot_plugin_handle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,15 @@
EventToMe,
ShellCommandArgv,
)
from nonebot.plugin import PluginMetadata
from nonebot.plugin import PluginMetadata, inherit_supported_adapters
from nonebot.rule import ArgumentParser, Rule
from nonebot.typing import T_State

require("nonebot_plugin_saa")
require("nonebot_plugin_session")

from nonebot_plugin_saa import Image, MessageFactory
from nonebot_plugin_saa import __plugin_meta__ as saa_plugin_meta
from nonebot_plugin_session import SessionIdType
from nonebot_plugin_session import __plugin_meta__ as session_plugin_meta
from nonebot_plugin_session import extract_session

assert saa_plugin_meta.supported_adapters
assert session_plugin_meta.supported_adapters
supported_adapters = (
saa_plugin_meta.supported_adapters & session_plugin_meta.supported_adapters
)
from nonebot_plugin_session import SessionIdType, extract_session

from .config import Config, handle_config
from .data_source import GuessResult, Handle
Expand All @@ -56,12 +47,14 @@
type="application",
homepage="https://github.com/noneplugin/nonebot-plugin-handle",
config=Config,
supported_adapters=supported_adapters,
supported_adapters=inherit_supported_adapters(
"nonebot_plugin_saa", "nonebot_plugin_session"
),
extra={
"unique_name": "handle",
"example": "@小Q 猜成语",
"author": "meetwq <meetwq@gmail.com>",
"version": "0.3.3",
"version": "0.3.4",
},
)

Expand Down
Loading

0 comments on commit 45ff0f4

Please sign in to comment.