No project description provided
Project description
Nonebot Plugin All4One
让 NoneBot2 成为 OneBot 实现!
安装
从 PyPI 安装(推荐)
- 使用 nb-cli
nb plugin install nonebot-plugin-all4one
- 使用 pdm
pdm add nonebot-plugin-all4one
- 使用 pip
pip install nonebot-plugin-all4one
从 GitHub 安装(不推荐)
pdm add git+https://github.com/nonepkg/nonebot-plugin-all4one
使用
obimpl_connections = [{"type":"websocket_rev","url":"ws://127.0.0.1:8080/onebot/v12/"},{"type":"websocket_rev","url":"ws://127.0.0.1:4000/onebot/v12/", "self_id_prefix": "True"}] # 其它连接方式的配置同理
middlewares = ["OneBot V11"] # 自定义加载的 Middleware,默认加载全部
block_event = False # 是否中止已转发 Event 的处理流程,默认中止
blocked_plugins = ["echo"] # 在 block_event=False 时生效,可自定义处理流程中要中止的插件
Feature
OneBot
- HTTP 测试中
- HTTP Webhook 测试中
- 正向 WebSocket 测试中
- 反向 WebSocket
Middlewares
- Console -> OneBot V12
- OneBot V11 -> OneBot V12 测试中
- OneBot V12 -> OneBot V12
- Telegram -> OneBot V12 测试中
- Kaiheila -> OneBot V12
鸣谢
All4One 的出现离不开以下项目:
- nonebot-adapter-onebot 复用代码
- zhamao-robot/go-cqhttp-adapter-plugin OneBot V11 -> V12 逻辑参考
- nonebot-plugin-params 灵感来源
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
Close
Hashes for nonebot-plugin-all4one-0.1.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8115bb6644bc1370ba99bbfededbed441126d54d3b99776059235dcb55e4d70 |
|
MD5 | f63fa4f7e309a1f669e3a67a0d4e15d2 |
|
BLAKE2b-256 | de8c605013938d23cbdd73e0deaac98ed208d3fbd00cde38805fc8e436bc2170 |
Close
Hashes for nonebot_plugin_all4one-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ff279582fd6d2f0d130ef7751b7be939a2bc94d2323447bb1d571abc3eab063 |
|
MD5 | 487164bd98f5a23b0b14a6227f54a86c |
|
BLAKE2b-256 | 2004ce1c75265c0bfb46da2b55afbfd05f15a4df38d78e6077eb4050d17c3549 |