Update main.py

This commit is contained in:
Marsisus 2024-11-08 11:28:49 +01:00 committed by GitHub
parent 62525efda2
commit a1ef0184df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -29,8 +29,8 @@ async def on_ready():
# réagir a un message
@bot.event
async def on_message(message):
if message.author == bot.user:
return
#if message.author == bot.user:
#return
if "quoi" in message.content[-10:].lower():
await message.channel.send(f"quoicoubeh {message.author.mention} !")
if "j'aime" in message.content.lower()[:6]:
@ -127,4 +127,4 @@ async def add_colle(interaction:discord.Interaction, group:str, day:str, hour:st
await interaction.response.send_message(embed=embed)
# Lancer le bot
bot.run(os.getenv('BOT_TOKEN'))
bot.run(os.getenv('BOT_TOKEN'))