Fix of fix
This commit is contained in:
parent
f26274bbdc
commit
34a031fd76
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -89,7 +89,7 @@ async def on_message(message):
|
||||||
if re.match(r'^<@(\w+)>$', message.content):
|
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 !")
|
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.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)
|
await bot.process_commands(message)
|
||||||
|
|
Loading…
Reference in a new issue