session 插件 saa 扩展
Project description
nonebot-plugin-session-saa
- 提供从 session 获取 saa 发送对象 PlatformTarget 的方法
安装
- 使用 nb-cli
nb plugin install nonebot_plugin_session_saa
- 使用 pip
pip install nonebot_plugin_session_saa
使用
from nonebot import require
require("nonebot_plugin_session_saa")
from nonebot_plugin_session import EventSession
from nonebot_plugin_session_saa import get_saa_target
@matcher.handle()
async def handle(session: EventSession):
target = get_saa_target(session)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_session_saa-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0fc55d91e5ca2a21948069816b82cb94d7091a45b345d89f3eaf08c3ffb8579 |
|
MD5 | 1250133be24cda3b0fc24b19dc24aee9 |
|
BLAKE2b-256 | 2857835f102d0f4668e7de7b4d385e2207e36a6ce4270b7f6320572b6835f520 |
Close
Hashes for nonebot_plugin_session_saa-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba9666bf49534df6129dd9170b55d20cbc80b86693a1370948dcf210a5feabce |
|
MD5 | fa1be95944c2e97b0c18cb5c670e2e39 |
|
BLAKE2b-256 | 8df6c1907a51ab484de7fe4ef486d2c1f21a112a1424722424ee6b0aa6832cbd |