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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a278ed490160722d6e1e0c165993a9ee3fed093814e87fdb6a2a0cc20fb5d2d4 |
|
MD5 | 1bd5aa690107b7fa21a7eb3fbcd697dc |
|
BLAKE2b-256 | 1182d915b2012f44dc3bf18d24f16f13ddd25ac85c697c206dd2632be93085c1 |
Close
Hashes for nonebot_plugin_session_saa-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb067e1e81261f85aae550a37aad1d6e1be20c64b78e60c34812d2d44fed487d |
|
MD5 | 0e1080d562aaa257b214d868353ef00e |
|
BLAKE2b-256 | 19c3d0ee45f47090fa151250ddf09867837854f137734e2980f9c27dec8ee6f3 |