Skip to content

Commit

Permalink
update: 去除Equal工具的正无穷大优先级
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien8261 committed Dec 9, 2024
1 parent 310cb1a commit d05f579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amiyabot/builtin/message/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def check_str(data: Message, text: str, level: Optional[int] = None) -> MatchRet
@staticmethod
def check_equal(data: Message, text: Equal, level: Optional[int] = None) -> MatchReturn:
if text.content == data.text:
return True, level if level is not None else float('inf'), text
return True, level if level is not None else 1, text
return False, 0, None

@staticmethod
Expand Down

0 comments on commit d05f579

Please sign in to comment.