说明
本项目仅自用,代码不符合 RFC: NoneBot 适配器规范,不会进入 NoneBot 商店。
由于作者只用于 把学习通接入猫娘,用不上文本以外的消息类型,所以只实现了文字消息相关的功能。
安装
pip install nonebot-adapter-chaoxing
或
pip install git+https://github.com/YangRucheng/nonebot-adapter-chaoxing.git#egg=nonebot-adapter-chaoxing
使用
import nonebot
from nonebot.adapters.chaoxing import Adapter as CxAdapter
nonebot.init()
driver = nonebot.get_driver()
driver.register_adapter(CxAdapter)
配置 Driver
DRIVER=~fastapi+~httpx
配置 Bot
CX_TOKEN="" # 类似于 OneBot 的 access_token
适配情况
| 接收消息 | 发送消息 | |
|---|---|---|
| 文字消息 | ✅ | ✅ |
| 图片消息 | ✅ | ❌ |
| 音频消息 | ✅ | ❌ |
开源协议
Metadata
Release files for nonebot-adapter-chaoxing 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_adapter_chaoxing-0.0.8.tar.gz | 11.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_adapter_chaoxing-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.6 kB
Release files / nonebot_adapter_chaoxing-0.0.8.tar.gz
| Download URL | nonebot_adapter_chaoxing-0.0.8.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a4f634fb08664efaa48dd6a6c057fb903b1821681ce0597fbc79ad0049f2040
|
|
BLAKE2b-256 checksum How to use checksums |
a0b26b4dd472c1f460072b47e0e7fe747957a665648318c20be25d2edf083a36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / nonebot_adapter_chaoxing-0.0.8-py3-none-any.whl
| Download URL | nonebot_adapter_chaoxing-0.0.8-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d362c83e94084a664a67383bb8a27012ef54171babc19b5ef5acdb79aa46f5b
|
|
BLAKE2b-256 checksum How to use checksums |
3b85f88b7f8db22dd28916d5913c6ff5c37b20681badb2c84e1860627fb996d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|