nonebot2/nonebot/consts.py

21 lines
420 B
Python
Raw Normal View History

2021-12-14 01:08:48 +08:00
# used by Matcher
2022-01-01 21:11:46 +08:00
RECEIVE_KEY = "_receive_{id}"
LAST_RECEIVE_KEY = "_last_receive"
ARG_KEY = "{key}"
REJECT_TARGET = "_current_target"
REJECT_CACHE_TARGET = "_next_target"
2021-12-14 01:08:48 +08:00
# used by Rule
2022-01-01 21:11:46 +08:00
PREFIX_KEY = "_prefix"
2021-12-14 01:08:48 +08:00
2022-01-01 21:11:46 +08:00
CMD_KEY = "command"
RAW_CMD_KEY = "raw_command"
CMD_ARG_KEY = "command_arg"
2021-12-14 01:08:48 +08:00
2022-01-01 21:11:46 +08:00
SHELL_ARGS = "_args"
SHELL_ARGV = "_argv"
2021-12-14 01:08:48 +08:00
2022-01-01 21:11:46 +08:00
REGEX_MATCHED = "_matched"
REGEX_GROUP = "_matched_groups"
REGEX_DICT = "_matched_dict"