Mention conjurer

This commit is contained in:
2023-08-29 12:05:47 +02:00
parent a3405cffa7
commit b7b1c83ed4
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
*logs *logs
*actions *actions
*notifications *notifications
*tools
plugins plugins
user_trunk.yaml user_trunk.yaml
user.yaml user.yaml
tools
+6 -6
View File
@@ -1,19 +1,19 @@
version: 0.1 version: 0.1
cli: cli:
version: 1.12.3 version: 1.14.2
plugins: plugins:
sources: sources:
- id: trunk - id: trunk
ref: v0.0.22 ref: v1.2.1
uri: https://github.com/trunk-io/plugins uri: https://github.com/trunk-io/plugins
lint: lint:
enabled: enabled:
- checkov@2.3.75 - checkov@2.4.9
- yamllint@1.26.3 - yamllint@1.32.0
- actionlint@1.6.25 - actionlint@1.6.25
- markdownlint@0.35.0 - markdownlint@0.35.0
- trivy@0.43.1 - trivy@0.44.1
- trufflehog@3.44.0 - trufflehog@3.54.0
- pylint - pylint
- codespell - codespell
- cspell - cspell
+5 -1
View File
@@ -270,8 +270,12 @@ async def on_message(message):
word_reactions[word][2] = datetime.now() word_reactions[word][2] = datetime.now()
# TODO: drobne literówki, mentiony, spacja przed dwukropkiem. napraw. # TODO: drobne literówki, mentiony, spacja przed dwukropkiem. napraw.
kondziu_mentioned = False
for mention in message.mentions:
if mention == client.user:
kondziu_mentioned = True
if "conjurer:" in message.content: if kondziu_mentioned or "conjurer:" in message.content:
async with channel.typing(): async with channel.typing():
logger.debug("Procedura chatu") logger.debug("Procedura chatu")
message.content = message.content.replace("conjurer: ", "") message.content = message.content.replace("conjurer: ", "")