Skip to content

YangRucheng/nonebot-adapter-chaoxing

Repository files navigation

NoneBot-Adapter-ChaoXing

✨ 超星学习通(环信3.0) 协议适配 ✨

license pypi python

说明

本项目仅自用,代码不符合 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

适配情况

接收消息 发送消息
文字消息
图片消息
音频消息

开源协议

MIT LICENSE

About

✨NoneBot2 超星学习通 IM(环信3.0) 协议适配器✨

Resources

License

Stars

Watchers

Forks