mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 16:16:21 +08:00
1.8 KiB
1.8 KiB
sidebar_position | description |
---|---|
9 | nonebot.consts 模块 |
nonebot.consts
本模块包含了 NoneBot 事件处理过程中使用到的常量。
var RECEIVE_KEY
-
类型: Literal['receive{id}']
-
说明:
receive
存储 key
var LAST_RECEIVE_KEY
-
类型: Literal['_last_receive']
-
说明:
last_receive
存储 key
var ARG_KEY
-
类型: Literal['{key}']
-
说明:
arg
存储 key
var REJECT_TARGET
-
类型: Literal['_current_target']
-
说明: 当前
reject
目标存储 key
var REJECT_CACHE_TARGET
-
类型: Literal['_next_target']
-
说明: 下一个
reject
目标存储 key
var PREFIX_KEY
-
类型: Literal['_prefix']
-
说明: 命令前缀存储 key
var CMD_KEY
-
类型: Literal['command']
-
说明: 命令元组存储 key
var RAW_CMD_KEY
-
类型: Literal['raw_command']
-
说明: 命令文本存储 key
var CMD_ARG_KEY
-
类型: Literal['command_arg']
-
说明: 命令参数存储 key
var SHELL_ARGS
-
类型: Literal['_args']
-
说明: shell 命令 parse 后参数字典存储 key
var SHELL_ARGV
-
类型: Literal['_argv']
-
说明: shell 命令原始参数列表存储 key
var REGEX_MATCHED
-
类型: Literal['_matched']
-
说明: 正则匹配结果存储 key
var REGEX_GROUP
-
类型: Literal['_matched_groups']
-
说明: 正则匹配 group 元组存储 key
var REGEX_DICT
-
类型: Literal['_matched_dict']
-
说明: 正则匹配 group 字典存储 key