Mention conjurer

This commit is contained in:
2023-08-29 12:05:47 +02:00
committed by migatu
parent a0cddaa1f0
commit d6dd276a92
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
tools
+6 -6
View File
@@ -1,19 +1,19 @@
version: 0.1
cli:
version: 1.12.3
version: 1.14.2
plugins:
sources:
- id: trunk
ref: v0.0.22
ref: v1.2.1
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- checkov@2.3.75
- yamllint@1.26.3
- checkov@2.4.9
- yamllint@1.32.0
- actionlint@1.6.25
- markdownlint@0.35.0
- trivy@0.43.1
- trufflehog@3.44.0
- trivy@0.44.1
- trufflehog@3.54.0
- pylint
- codespell
- cspell
+5 -1
View File
@@ -270,8 +270,12 @@ async def on_message(message):
word_reactions[word][2] = datetime.now()
# 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():
logger.debug("Procedura chatu")
message.content = message.content.replace("conjurer: ", "")