mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 09:34:46 +08:00
1.7 KiB
1.7 KiB
sidebar_position | description |
---|---|
0 | nonebot.plugin 模块 |
nonebot.plugin
本模块为 NoneBot 插件开发提供便携的定义函数。
快捷导入
为方便使用,本模块从子模块导入了部分内容,以下内容可以直接通过本模块导入:
on
=>on
on_metaevent
=>on_metaevent
on_message
=>on_message
on_notice
=>on_notice
on_request
=>on_request
on_startswith
=>on_startswith
on_endswith
=>on_endswith
on_fullmatch
=>on_fullmatch
on_keyword
=>on_keyword
on_command
=>on_command
on_shell_command
=>on_shell_command
on_regex
=>on_regex
CommandGroup
=>CommandGroup
Matchergroup
=>MatcherGroup
load_plugin
=>load_plugin
load_plugins
=>load_plugins
load_all_plugins
=>load_all_plugins
load_from_json
=>load_from_json
load_from_toml
=>load_from_toml
load_builtin_plugin
=>load_builtin_plugin
load_builtin_plugins
=>load_builtin_plugins
get_plugin
=>get_plugin
get_loaded_plugins
=>get_loaded_plugins
export
=>export
require
=>require