Nonebot2 Adapter for 超星学习通
Project description
NoneBot-Adapter-ChaoXing
✨ 超星学习通(环信3.0) 协议适配 ✨
说明
本项目仅自用,代码不符合 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
适配情况
| 接收消息 | 发送消息 | |
|---|---|---|
| 文字消息 | ✅ | ✅ |
| 图片消息 | ✅ | ❌ |
| 音频消息 | ✅ | ❌ |
开源协议
Project details
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_adapter_chaoxing-0.0.8.tar.gz.
File metadata
- Download URL: nonebot_adapter_chaoxing-0.0.8.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a4f634fb08664efaa48dd6a6c057fb903b1821681ce0597fbc79ad0049f2040
|
|
| MD5 |
3f8f10060b26af1dab7dfb650d98cc5f
|
|
| BLAKE2b-256 |
a0b26b4dd472c1f460072b47e0e7fe747957a665648318c20be25d2edf083a36
|
File details
Details for the file nonebot_adapter_chaoxing-0.0.8-py3-none-any.whl.
File metadata
- Download URL: nonebot_adapter_chaoxing-0.0.8-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d362c83e94084a664a67383bb8a27012ef54171babc19b5ef5acdb79aa46f5b
|
|
| MD5 |
a4043dfadaded16b3ac3735e7aae44f2
|
|
| BLAKE2b-256 |
3b85f88b7f8db22dd28916d5913c6ff5c37b20681badb2c84e1860627fb996d0
|