mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 23:32:10 +00:00
Mention conjurer
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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: ", "")
|
||||||
|
|||||||
Reference in New Issue
Block a user