From 34a031fd76a05938b972fb4e8cc4a457699d837f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl?= Date: Sun, 11 Jun 2017 18:33:50 -0400 Subject: [PATCH] Fix of fix --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 32e3b81..b11d7f8 100644 --- a/bot.py +++ b/bot.py @@ -89,7 +89,7 @@ async def on_message(message): if re.match(r'^<@(\w+)>$', message.content): await bot.send_message(message.channel, message.author.mention + " > Tu voulais lui dire quoi ? Tu le mentionne sans message !") - if re.match(r"[A-Z]{5,}") and not message.author.bot and len(message.content) > 5: + if re.match(r"[A-Z]{5,}", message.content) and not message.author.bot and len(message.content) > 5: await bot.send_message(message.channel, message.author.mention + " > Evite les messages en majuscule, ce n'est pas la peine de crier !") await bot.process_commands(message)