Skip to content

Commit

Permalink
Fix: 修复部分情况下config类型错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhHeng committed Aug 31, 2024
1 parent 5344f42 commit c75aba0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions where2go/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ class COMMAND_CONFIG(Serializable):
fastsearch_prompt: str = "XXX在哪"

class PLAYER_API_CONFIG(Serializable):
prefix_regex: str = "(?:\[.+\])?",
player_pos_command: str = "data get entity {player} Pos",
player_dimension_command: str = "data get entity {player} Dimension",
player_pos_regex: str = "^{prefix_regex}(\w+) has the following entity data: \[(-?[0-9.]+)d, (-?[0-9.]+)d, (-?[0-9.]+)d\]",
player_dimension_regex: str = '^{prefix_regex}(\w+) has the following entity data: "minecraft:(\w+)"',
player_notfound_regex: str = '^No entity was found',
player_list_command: str = "list",
player_list_sep: str = ", ",
player_list_regex: str = '^There are [0-9]+ of a max of [0-9]+ players online: (.+)*'
prefix_regex: str = "(?:\[.+\])?"
player_pos_command: str = "data get entity {player} Pos"
player_dimension_command: str = "data get entity {player} Dimension"
player_pos_regex: str = "^{prefix_regex}(\w+) has the following entity data: \[(-?[0-9.]+)d, (-?[0-9.]+)d, (-?[0-9.]+)d\]"
player_dimension_regex: str = '^{prefix_regex}(\w+) has the following entity data: "minecraft:(\w+)"'
player_notfound_regex: str = '^No entity was found'
player_list_command: str = "list"
player_list_sep: str = ", "
player_list_regex: str = '^There are [0-9]+ of a max of [0-9]+ players online: (.+)*'
highlight_command: str = "effect give {player} minecraft:glowing 15 0 true"

class CONFIG(Serializable):
Expand Down

0 comments on commit c75aba0

Please sign in to comment.