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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_session_saa-0.2.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_session_saa-0.2.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1019-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4ec3b67cffce5ea9202f483dda8db5ac7d740bec6f33a845bf02e58481811b2
|
|
| MD5 |
beb3da6f45f06cc39a484d6838ed5c99
|
|
| BLAKE2b-256 |
fc488175b3c17ed399ef18ed6d7fada57aa6840c4e203a7a627bd087ca1b7757
|
File details
Details for the file nonebot_plugin_session_saa-0.2.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_session_saa-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1019-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9617b15453f131c4fcd0484616f6456365d2ba1072cb0cf62d7133b175fd172
|
|
| MD5 |
933a591844be17e686e0b18d31d3afed
|
|
| BLAKE2b-256 |
fc1e1a0689f5ba6b0444b70c704f980f3b4a73747aff5570086a6f8805f16e04
|