mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Mention conjurer
This commit is contained in:
@@ -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