nonebot2/docs/api/nonebot.md

267 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2020-08-23 17:03:59 +08:00
---
contentSidebar: true
sidebarDepth: 0
---
2020-08-19 20:29:37 +08:00
# NoneBot 模块
2020-10-08 21:36:57 +08:00
## 快捷导入
为方便使用,`nonebot` 模块从子模块导入了部分内容
* `on_message` => `nonebot.plugin.on_message`
* `on_notice` => `nonebot.plugin.on_notice`
* `on_request` => `nonebot.plugin.on_request`
* `on_metaevent` => `nonebot.plugin.on_metaevent`
* `on_startswith` => `nonebot.plugin.on_startswith`
* `on_endswith` => `nonebot.plugin.on_endswith`
2020-11-10 09:36:13 +00:00
* `on_keyword` => `nonebot.plugin.on_keyword`
2020-10-08 21:36:57 +08:00
2020-11-10 09:36:13 +00:00
* `on_command` => `nonebot.plugin.on_command`
2020-10-08 21:36:57 +08:00
* `on_regex` => `nonebot.plugin.on_regex`
* `CommandGroup` => `nonebot.plugin.CommandGroup`
2020-12-05 01:43:58 +08:00
* `Matchergroup` => `nonebot.plugin.MatcherGroup`
2020-10-08 21:36:57 +08:00
* `load_plugin` => `nonebot.plugin.load_plugin`
* `load_plugins` => `nonebot.plugin.load_plugins`
* `load_builtin_plugins` => `nonebot.plugin.load_builtin_plugins`
2020-11-21 20:50:33 +08:00
* `get_plugin` => `nonebot.plugin.get_plugin`
2020-10-08 21:36:57 +08:00
* `get_loaded_plugins` => `nonebot.plugin.get_loaded_plugins`
2020-08-19 20:29:37 +08:00
2020-11-21 20:50:33 +08:00
* `export` => `nonebot.plugin.export`
* `require` => `nonebot.plugin.require`