| Skip to main content | https://nonebot.dev/docs/tutorial/create-plugin#__docusaurus_skipToContent_fallback |
| NoneBot | https://nonebot.dev/ |
| Next | https://nonebot.dev/docs/next/tutorial/create-plugin |
| 2.5.0 | https://nonebot.dev/docs/tutorial/create-plugin |
| 2.4.4 | https://nonebot.dev/docs/2.4.4/tutorial/create-plugin |
| 2.4.3 | https://nonebot.dev/docs/2.4.3/tutorial/create-plugin |
| 1.x | https://v1.nonebot.dev/ |
| 快速上手尝试使用 NoneBot | https://nonebot.dev/docs/quick-start |
| 手动创建项目创建一个 NoneBot 项目 | https://nonebot.dev/docs/tutorial/application |
| 机器人的构成NoneBot 机器人构成及基本使用 | https://nonebot.dev/docs/tutorial/fundamentals |
| 获取商店内容从商店安装适配器和插件 | https://nonebot.dev/docs/tutorial/store |
| 插件编写准备创建并加载自定义插件 | https://nonebot.dev/docs/tutorial/create-plugin |
| 事件响应器响应接收到的特定事件 | https://nonebot.dev/docs/tutorial/matcher |
| 事件处理处理接收到的特定事件 | https://nonebot.dev/docs/tutorial/handler |
| 获取事件信息通过依赖注入获取所需事件信息 | https://nonebot.dev/docs/tutorial/event-data |
| 处理消息处理消息序列与消息段 | https://nonebot.dev/docs/tutorial/message |
| 2.5.0StableDocumentation for the latest, stable, branch. | https://nonebot.dev/docs/tutorial/create-plugin |
| NextDevelopmentDocumentation for the latest, in-development, branch. | https://nonebot.dev/docs/next/tutorial/create-plugin |
| 配置读取用户配置来控制插件行为 | https://nonebot.dev/docs/appendices/config |
| 响应规则自定义响应规则 | https://nonebot.dev/docs/appendices/rule |
| 会话控制更灵活的会话控制 | https://nonebot.dev/docs/appendices/session-control |
| 会话状态会话状态信息 | https://nonebot.dev/docs/appendices/session-state |
| 使用平台接口使用平台接口,完成更多功能 | https://nonebot.dev/docs/appendices/api-calling |
| 权限控制控制事件响应器的权限 | https://nonebot.dev/docs/appendices/permission |
| 日志记录与控制日志 | https://nonebot.dev/docs/appendices/log |
| 事件类型与重载根据事件类型进行不同的处理 | https://nonebot.dev/docs/appendices/overload |
| 2.5.0StableDocumentation for the latest, stable, branch. | https://nonebot.dev/docs/tutorial/create-plugin |
| NextDevelopmentDocumentation for the latest, in-development, branch. | https://nonebot.dev/docs/next/tutorial/create-plugin |
| 选择驱动器选择合适的驱动器运行机器人 | https://nonebot.dev/docs/advanced/driver |
| 使用适配器注册适配器与指定平台交互 | https://nonebot.dev/docs/advanced/adapter |
| 插件信息填写与获取插件相关的信息 | https://nonebot.dev/docs/advanced/plugin-info |
| 嵌套插件编写与加载嵌套插件 | https://nonebot.dev/docs/advanced/plugin-nesting |
| 跨插件访问使用其他插件提供的功能 | https://nonebot.dev/docs/advanced/requiring |
| 事件响应器进阶事件响应器组成与内置响应规则 | https://nonebot.dev/docs/advanced/matcher |
| 依赖注入通过依赖注入获取上下文信息 | https://nonebot.dev/docs/advanced/dependency |
| 会话更新控制会话响应对象 | https://nonebot.dev/docs/advanced/session-updating |
| 钩子函数在特定的生命周期中执行代码 | https://nonebot.dev/docs/advanced/runtime-hook |
| 添加路由添加服务端路由规则 | https://nonebot.dev/docs/advanced/routing |
| 事件响应器存储自定义事件响应器存储 | https://nonebot.dev/docs/advanced/matcher-provider |
| 2.5.0StableDocumentation for the latest, stable, branch. | https://nonebot.dev/docs/tutorial/create-plugin |
| NextDevelopmentDocumentation for the latest, in-development, branch. | https://nonebot.dev/docs/next/tutorial/create-plugin |
| API | https://nonebot.dev/docs/api/ |
| 更多 | https://nonebot.dev/store/plugins |
| 最佳实践 | https://nonebot.dev/docs/best-practice/scheduler |
| 开发者 | https://nonebot.dev/docs/developer/plugin-publishing |
| 社区 | https://nonebot.dev/docs/community/contact |
| 开源之夏 | https://nonebot.dev/docs/ospp/2025 |
| 商店 | https://nonebot.dev/store/plugins |
| 更新日志 | https://nonebot.dev/changelog/ |
| 论坛 | https://discussions.nonebot.dev |
| https://github.com/nonebot/nonebot2 |
| https://github.com/nonebot/nonebot2 |
| NoneBot | https://nonebot.dev/ |
| 指南 | https://nonebot.dev/docs/quick-start |
| 深入 | https://nonebot.dev/docs/appendices/config |
| 进阶 | https://nonebot.dev/docs/advanced/driver |
| API | https://nonebot.dev/docs/api/ |
| 更多 | https://nonebot.dev/store/plugins |
| https://github.com/nonebot/nonebot2 |
| 概览 | https://nonebot.dev/docs/ |
| 快速上手 | https://nonebot.dev/docs/quick-start |
| 编辑器支持 | https://nonebot.dev/docs/editor-support |
| 指南 | https://nonebot.dev/docs/tutorial/application |
| 手动创建项目 | https://nonebot.dev/docs/tutorial/application |
| 机器人的构成 | https://nonebot.dev/docs/tutorial/fundamentals |
| 获取商店内容 | https://nonebot.dev/docs/tutorial/store |
| 插件编写准备 | https://nonebot.dev/docs/tutorial/create-plugin |
| 事件响应器 | https://nonebot.dev/docs/tutorial/matcher |
| 事件处理 | https://nonebot.dev/docs/tutorial/handler |
| 获取事件信息 | https://nonebot.dev/docs/tutorial/event-data |
| 处理消息 | https://nonebot.dev/docs/tutorial/message |
| 深入 | https://nonebot.dev/docs/appendices/config |
| 进阶 | https://nonebot.dev/docs/advanced/driver |
| 最佳实践 | https://nonebot.dev/docs/best-practice/scheduler |
| 开发者 | https://nonebot.dev/docs/developer/plugin-publishing |
| https://nonebot.dev/ |
| | https://nonebot.dev/docs/tutorial/create-plugin#插件结构 |
| 模块(module) | https://docs.python.org/zh-cn/3/glossary.html#term-module |
| | https://nonebot.dev/docs/tutorial/create-plugin#单文件插件 |
| | https://nonebot.dev/docs/tutorial/create-plugin#包插件 |
| 包 package | https://docs.python.org/zh-cn/3/glossary.html#term-regular-package |
| | https://nonebot.dev/docs/tutorial/create-plugin#创建插件 |
| 快速上手 | https://nonebot.dev/docs/quick-start |
| 创建项目 | https://nonebot.dev/docs/tutorial/application |
| | https://nonebot.dev/docs/tutorial/create-plugin#加载插件 |
| | https://nonebot.dev/docs/tutorial/create-plugin#load_plugin |
| pathlib | https://docs.python.org/zh-cn/3/library/pathlib.html |
| | https://nonebot.dev/docs/tutorial/create-plugin#load_plugins |
| | https://nonebot.dev/docs/tutorial/create-plugin#load_all_plugins |
| | https://nonebot.dev/docs/tutorial/create-plugin#load_from_json |
| load_all_plugins | https://nonebot.dev/docs/tutorial/create-plugin#load_all_plugins |
| load_all_plugins | https://nonebot.dev/docs/tutorial/create-plugin#load_all_plugins |
| | https://nonebot.dev/docs/tutorial/create-plugin#load_from_toml |
| load_all_plugins | https://nonebot.dev/docs/tutorial/create-plugin#load_all_plugins |
| load_all_plugins | https://nonebot.dev/docs/tutorial/create-plugin#load_all_plugins |
| | https://nonebot.dev/docs/tutorial/create-plugin#load_builtin_plugin |
| load_plugin | https://nonebot.dev/docs/tutorial/create-plugin#load_plugin |
| | https://nonebot.dev/docs/tutorial/create-plugin#load_builtin_plugins |
| | https://nonebot.dev/docs/tutorial/create-plugin#其他加载方式 |
| 跨插件访问 | https://nonebot.dev/docs/advanced/requiring |
| 嵌套插件 | https://nonebot.dev/docs/advanced/plugin-nesting |
| Edit this page | https://github.com/nonebot/nonebot2/edit/master/website/versioned_docs/version-2.5.0/tutorial/create-plugin.md |
| Previous« 获取商店内容 | https://nonebot.dev/docs/tutorial/store |
| Next事件响应器 » | https://nonebot.dev/docs/tutorial/matcher |
| 插件结构 | https://nonebot.dev/docs/tutorial/create-plugin#插件结构 |
| 单文件插件 | https://nonebot.dev/docs/tutorial/create-plugin#单文件插件 |
| 包插件 | https://nonebot.dev/docs/tutorial/create-plugin#包插件 |
| 创建插件 | https://nonebot.dev/docs/tutorial/create-plugin#创建插件 |
| 加载插件 | https://nonebot.dev/docs/tutorial/create-plugin#加载插件 |
| load_plugin | https://nonebot.dev/docs/tutorial/create-plugin#load_plugin |
| load_plugins | https://nonebot.dev/docs/tutorial/create-plugin#load_plugins |
| load_all_plugins | https://nonebot.dev/docs/tutorial/create-plugin#load_all_plugins |
| load_from_json | https://nonebot.dev/docs/tutorial/create-plugin#load_from_json |
| load_from_toml | https://nonebot.dev/docs/tutorial/create-plugin#load_from_toml |
| load_builtin_plugin | https://nonebot.dev/docs/tutorial/create-plugin#load_builtin_plugin |
| load_builtin_plugins | https://nonebot.dev/docs/tutorial/create-plugin#load_builtin_plugins |
| 其他加载方式 | https://nonebot.dev/docs/tutorial/create-plugin#其他加载方式 |
| https://nonebot.dev/ |
| https://github.com/nonebot/nonebot2 |
| https://jq.qq.com/?_wv=1027&k=5OFifDh |
| https://t.me/botuniverse |
| https://discord.gg/VKtE6Gdc4h |
| Introduction | https://nonebot.dev/docs/ |
| QuickStart | https://nonebot.dev/docs/quick-start |
| Changelog | https://nonebot.dev/changelog/ |
| Homepage | https://nonebot.dev |
| NoneBot V1 | https://v1.nonebot.dev |
| NoneBot CLI | https://cli.nonebot.dev |
| OneBot | https://onebot.dev/ |
| go-cqhttp | https://docs.go-cqhttp.org/ |
| Mirai | https://mirai.mamoe.net/ |
| https://docusaurus.io/ |
| https://reactjs.org/ |
| https://www.netlify.com/ |
| https://www.cloudflare.com/ |