-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
322 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*__pycache__/ | ||
dist/ | ||
.idea/ | ||
.vscode/ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 <[email protected]>", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
}, | ||
) | ||
|
||
|
Oops, something went wrong.