MCPcopy
hub / github.com/nonebot/nonebot2

github.com/nonebot/nonebot2 @v2.5.0 sqlite

repository ↗ · DeepWiki ↗ · release v2.5.0 ↗
1,391 symbols 5,250 edges 175 files 382 documented · 27%
README

nonebot

NoneBot

✨ 跨平台 Python 异步机器人框架 ✨

license pypi python black pyright ruff

codecov site pre-commit pyright ruff

onebot onebot QQ telegram feishu github

QQ Chat Group QQ Channel Telegram Channel Discord Server

文档 · 快速上手 · 文档打不开?

setup

简介

NoneBot2 是一个现代、跨平台、可扩展的 Python 聊天机器人框架,它基于 Python 的类型注解和异步特性,能够为你的需求实现提供便捷灵活的支持。

特色

  • 异步优先:基于 Python 的异步特性,即使是~~非常~~大量的消息,也能吞吐自如
  • 易于开发:配合 NB-CLI 脚手架,代码编写上手简单,没有过多的冗余代码,可以让开发者专注于业务逻辑
  • 生而可靠:100% 类型注解覆盖,配合编辑器的类型推导功能,能将绝大多数的 Bug 杜绝在编辑器中 (编辑器支持)
  • 社区丰富:社区用户众多,直接和间接用户超过十万人,每天都有大量的活跃用户 (社区资源)
  • 海纳百川:一个框架,支持多个聊天软件平台,可自定义通信协议
协议名称 状态 注释
OneBot(仓库协议 支持 QQ、TG、微信公众号、KOOK 等平台
Telegram(仓库协议
飞书(仓库协议
GitHub(仓库协议 GitHub APP & OAuth APP
QQ(仓库协议 QQ 官方接口调整较多
Console(仓库 控制台交互
Red(仓库协议 QQNT 协议
Satori(仓库协议 支持 Onebot、TG、飞书、微信公众号、Koishi 等
Discord(仓库协议 Discord Bot 协议
DoDo(仓库协议 DoDo Bot 协议
Kritor(仓库协议 Kritor (OnebotX) 协议,QQNT 机器人接口标准
Mirai(仓库协议 QQ 协议
Milky(仓库协议 QQNT 机器人应用接口标准
钉钉(仓库协议 🤗 寻找 Maintainer(暂不可用)
开黑啦(仓库协议 ↗️ 由社区贡献
Ntchat(仓库 ↗️ 微信协议,由社区贡献
MineCraft(仓库 ↗️ 由社区贡献
Walle-Q(仓库 ↗️ QQ 协议,由社区贡献
Villa(仓库

Extension points exported contracts — how you extend this code

Props (Interface)
(no doc)
website/src/components/Resource/Avatar/index.tsx
Digests (Interface)
(no doc)
website/src/components/Resource/DetailCard/types.ts
Props (Interface)
(no doc)
website/src/theme/Icon/Cloudflare.tsx
Props (Interface)
(no doc)
website/src/theme/Icon/Netlify.tsx

Core symbols most depended-on inside this repo

text
called by 101
tests/utils.py
make_fake_event
called by 73
tests/utils.py
append
called by 63
nonebot/internal/adapter/message.py
Depends
called by 54
nonebot/internal/params.py
get
called by 43
nonebot/compat.py
items
called by 38
nonebot/internal/matcher/manager.py
join
called by 34
nonebot/internal/adapter/message.py
send
called by 29
nonebot/internal/adapter/bot.py

Shape

Function 613
Method 605
Class 166
Interface 4
Enum 2
Route 1

Languages

Python93%
TypeScript7%

Modules by API surface

nonebot/rule.py73 symbols
nonebot/internal/params.py68 symbols
nonebot/internal/matcher/matcher.py52 symbols
nonebot/params.py47 symbols
nonebot/internal/adapter/message.py41 symbols
tests/test_driver.py40 symbols
nonebot/plugin/on.py40 symbols
nonebot/internal/driver/abstract.py40 symbols
nonebot/internal/driver/model.py39 symbols
nonebot/utils.py34 symbols
nonebot/compat.py33 symbols
nonebot/exception.py31 symbols

Dependencies from manifests, versioned

@docusaurus/core3.7.0 · 1×
@docusaurus/eslint-plugin3.7.0 · 1×
@docusaurus/faster3.7.0 · 1×
@docusaurus/module-type-aliases3.7.0 · 1×
@mdx-js/react3.0.0 · 1×
@nullbot/docusaurus-plugin-changelog3.0.0 · 1×
@nullbot/docusaurus-preset-nonepress3.0.0 · 1×
@nullbot/docusaurus-tsconfig3.0.0 · 1×
@types/react-color3.0.10 · 1×
@typescript-eslint/eslint-plugin5.62.0 · 1×
@typescript-eslint/parser5.62.0 · 1×
asciinema-player3.5.0 · 1×

Datastores touched

(mysql)Database · 1 repos
mymysqlDatabase · 1 repos

For agents

$ claude mcp add nonebot2 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact