mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Mention conjurer
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
*logs
|
||||
*actions
|
||||
*notifications
|
||||
*tools
|
||||
plugins
|
||||
user_trunk.yaml
|
||||
user.yaml
|
||||
tools
|
||||
|
||||
+6
-6
@@ -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
|
||||
|
||||
@@ -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: ", "")
|
||||
|
||||
Reference in New Issue
Block a user