Skip to main content

Nonebot2 Adapter for 超星学习通

Project description

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

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

nonebot_adapter_chaoxing-0.0.8.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_adapter_chaoxing-0.0.8-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

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

Hashes for nonebot_adapter_chaoxing-0.0.8.tar.gz
Algorithm Hash digest
SHA256 6a4f634fb08664efaa48dd6a6c057fb903b1821681ce0597fbc79ad0049f2040
MD5 3f8f10060b26af1dab7dfb650d98cc5f
BLAKE2b-256 a0b26b4dd472c1f460072b47e0e7fe747957a665648318c20be25d2edf083a36

See more details on using hashes here.

File details

Details for the file nonebot_adapter_chaoxing-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_adapter_chaoxing-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1d362c83e94084a664a67383bb8a27012ef54171babc19b5ef5acdb79aa46f5b
MD5 a4043dfadaded16b3ac3735e7aae44f2
BLAKE2b-256 3b85f88b7f8db22dd28916d5913c6ff5c37b20681badb2c84e1860627fb996d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page