目录
第一章 导言
第零节 导言
第二章 Bot
第一节 Dependent与Param的实例化
第二节 Matcher、Rule、Permission的实例化
第三节 Matcher的运行(handle_event)
第四节 Matcher的运行(call_api)
第三章 Adapter
第四章 Driver
第五章 杂项
快速索引
索引仅做查询用,请确保你已经浏览过整个系列并且至少掌握80%
以下内容不介绍
- 单纯用于import的__init__.py
- 空文件
- plugins示例
- 单纯用于打印的__str__和__repr__
nonebot.dependencies
__init__.py
class Param:
def _check_param 第一节>Param子类的实例化
def _check_parameterless 第一节>Param子类的实例化
async def _solve 第三节>Dependent.solve
async def _check 第三节>Dependent.check
class CustomConfig:
arbitrary_types_allowed 第一节>Dependent的实例化之parse_params
class Dependent:
call 第一节>Dependent的实例化
params 第一节>Dependent的实例化之parse_params
parameterless 第一节>Dependent的实例化之parse_parameterless
async def __call__ 第三节>Dependent.\__call__
def parse_params 第一节>Dependent的实例化之parse_params
def parse_parameterless 第一节>Dependent的实例化之parse_parameterless
def parse 第一节>Dependent的实例化
async def check 第三节>Dependent.check
async def solve 第三节>Dependent.solve
utils.py
def get_typed_signature 第一节>如何实现依赖注入 def get_typed_annotation 第一节>如何实现依赖注入 def check_field_type 第三节>Dependent.solve
nonebot.drivers
_block_driver.py
aiohttp.py
fastapi.py
httpx.py
quart.py
websockets.py
nonebot.internal.adapter
adapter.py
bot.py
event.py
message.py
template.py
nonebot.internal.driver
driver.py
model.py
nonebot.internal
matcher.py
class MatcherMeta: 第二节>Matcher的实例化 class Matcher: plugin 第二节>Matcher的实例化 module 第二节>Matcher的实例化 plugin_name 第二节>Matcher的实例化 module_name 第二节>Matcher的实例化 type 第二节>Matcher的实例化 rule 第二节>Matcher的实例化 permission 第二节>Matcher的实例化 handlers 第二节>Matcher的实例化 priority 第二节>Matcher的实例化 block 第二节>Matcher的实例化 temp 第二节>Matcher的实例化 expire_time 第二节>Matcher的实例化 _default_state: T_State = {} 第二节>Matcher的实例化 _default_type_updater 第二节>Matcher的实例化 _default_permission_updater 第二节>Matcher的实例化 HANDLER_PARAM_TYPES 第二节>Matcher的实例化 def __init__ 第三节>_run_matcher def new 第二节>Matcher的实例化 async def check_perm 第三节>Matcher.check_perm async def check_rule def type_updater def permission_updater def append_handler 第二节>Matcher.append_handler def handle 第二节>Matcher.handle def receive 第二节>Matcher.receive def got 第二节>Matcher.got async def send async def finish async def pause async def reject async def reject_arg async def reject_receive def skip def get_receive def set_receive def get_last_receive def get_arg def set_arg def set_target def get_target def get_target def stop_propagation async def update_type async def update_permission async def resolve_reject async def simple_run 第三节>Matcher.run async def run 第三节>Matcher.run
params.py
class DependsInner:
def __init__ 第一节>DependParam
def Depends 第一节>DependParam
class DependParam:
def _check_param 第一节>DependParam
def _check_parameterless 第一节>DependParam
async def _solve 第三节>Dependent.solve
async def _check 第三节>Dependent.check
class BotParam:
def _check_param 第一节>BotParam
async def _solve 第三节>Dependent.solve
async def _check 第三节>Dependent.check
class EventParam:
def _check_param 第一节>EventParam
async def _solve 第三节>Dependent.solve
async def _check 第三节>Dependent.check
class StateParam:
def _check_param 第一节>StateParam
async def _solve 第三节>Dependent.solve
class MatcherParam:
def _check_param 第一节>MatcherParam
async def _solve 第三节>Dependent.solve
class ArgInner:
def __init__ 第一节>ArgParam
def Arg 第一节>ArgParam
def ArgStr 第一节>ArgParam
def ArgPlainText 第一节>ArgParam
class ArgParam:
def _check_param 第一节>ArgParam
async def _solve 第三节>Dependent.solve
class ExceptionParam:
def _check_param 第一节>ExceptionParam
async def _solve 第三节>Dependent.solve
class DefaultParam:
def _check_param 第一节>DefaultParam
async def _solve 第三节>Dependent.solve
permission.py
class Permission:
HANDLER_PARAM_TYPES 第二节>Rule
def __init__ 第二节>Rule
async def __call__
def __and__ 第二节>Rule
def __or__ 第二节>Rule
def __ror__ 第二节>Rule
class User:
def __init__
async def __call__
def USER
rule.py
class Rule:
HANDLER_PARAM_TYPES 第二节>Permission
def __init__ 第二节>Permission
async def __call__
def __and__ 第二节>Permission
def __rand__ 第二节>Permission
def __or__ 第二节>Permission
nonebot.plugin
__init__.py
load.py
manager.py
on.py
def _store_matcher def _get_matcher_module def on 第二节>on、on_metaevent、on_message、on_notice、on_request def on_metaevent 第二节>on、on_metaevent、on_message、on_notice、on_request def on_message 第二节>on、on_metaevent、on_message、on_notice、on_request def on_notice 第二节>on、on_metaevent、on_message、on_notice、on_request def on_request 第二节>on、on_metaevent、on_message、on_notice、on_request def on_startswith def on_endswith def on_fullmatch def on_keyword def on_command def on_shell_command def on_regex def on_type class _Group: def __init__ def _get_final_kwargs class CommandGroup: def __init__ def command def shell_command class MatcherGroup: def on def on_metaevent def on_message def on_notice def on_request def on_startswith def on_endswith def on_fullmatch def on_keyword def on_command def on_shell_command def on_regex def on_type
plugin.py
nonebot
__init__.py
config.py
consts.py
exception.py
class NoneBotException: class ParserExit: class ProcessException: class IgnoredException:第三节>event_preprocess class SkippedException: class TypeMisMatch: class MockApiException: class StopPropagation: class MatcherException: class PausedException: class RejectedException: class FinishedException: class AdapterException: class NoLogException: class ApiNotAvailable: class NetworkError: class ActionFailed: class DriverException: class WebSocketClosed:
log.py
message.py
def event_preprocessor def event_postprocessor def run_postprocessor async def _check_matcher async def _run_matcher async def handle_event