Skip to content

Commit

Permalink
Merge pull request #110 from AmiyaBot/dev
Browse files Browse the repository at this point in the history
update: 去除Equal工具的正无穷大优先级
  • Loading branch information
vivien8261 authored Dec 9, 2024
2 parents f3e7282 + d05f579 commit 1cb4b5a
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 1cb4b5a

Please sign in to comment.