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
+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: ", "")