diff --git a/.gitignore b/.gitignore index a2714a4..773b548 100644 --- a/.gitignore +++ b/.gitignore @@ -662,4 +662,4 @@ FodyWeavers.xsd # End of https://www.toptal.com/developers/gitignore/api/visualstudio,visualstudiocode,jetbrains+all,python,data -config.json \ No newline at end of file +config.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9082fd1..5224086 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,17 +6,17 @@ ci: autoupdate_commit_msg: ":arrow_up: auto update by pre-commit-ci" repos: - repo: https://github.com/hadialqattan/pycln - rev: v2.1.2 + rev: v2.1.3 hooks: - id: pycln - repo: https://github.com/pycqa/isort - rev: 5.11.4 + rev: 5.12.0 hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black @@ -26,13 +26,13 @@ repos: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-poetry/poetry - rev: 1.3.1 + rev: 1.3.0 hooks: - id: poetry-check # - id: poetry-export diff --git a/gsuid_core/trigger.py b/gsuid_core/trigger.py index ac73b56..f9e5d79 100644 --- a/gsuid_core/trigger.py +++ b/gsuid_core/trigger.py @@ -37,7 +37,7 @@ def _check_fullmatch(self, keyword: str, msg: str) -> bool: if msg == keyword: return True return False - + async def get_command(self, msg: MessageContent) -> MessageContent: msg.command = self.keyword msg.text = msg.raw_text.replace(self.keyword, '')