Update main.py
This commit is contained in:
parent
62525efda2
commit
a1ef0184df
6
main.py
6
main.py
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue