Update main.py
This commit is contained in:
parent
a1ef0184df
commit
89fea91e81
9
main.py
9
main.py
|
@ -13,6 +13,8 @@ bot = discord.Client( intents=intents)
|
||||||
tree = app_commands.CommandTree(bot)
|
tree = app_commands.CommandTree(bot)
|
||||||
|
|
||||||
|
|
||||||
|
exclusions = ["dire", "dis", "disons", "dites", "dîtes", "dit"]
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
# Événement lorsque le bot est prêt
|
# Événement lorsque le bot est prêt
|
||||||
@bot.event
|
@bot.event
|
||||||
|
@ -29,13 +31,14 @@ async def on_ready():
|
||||||
# réagir a un message
|
# réagir a un message
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_message(message):
|
async def on_message(message):
|
||||||
#if message.author == bot.user:
|
if message.author == bot.user:
|
||||||
#return
|
return
|
||||||
if "quoi" in message.content[-10:].lower():
|
if "quoi" in message.content[-10:].lower():
|
||||||
await message.channel.send(f"quoicoubeh {message.author.mention} !")
|
await message.channel.send(f"quoicoubeh {message.author.mention} !")
|
||||||
if "j'aime" in message.content.lower()[:6]:
|
if "j'aime" in message.content.lower()[:6]:
|
||||||
await message.author.edit(nick=f'{message.content[6:]}')
|
await message.author.edit(nick=f'{message.content[6:]}')
|
||||||
|
if "dis" in message.content.lower():
|
||||||
|
return;
|
||||||
for i in range(len(message.content.split())):
|
for i in range(len(message.content.split())):
|
||||||
if len(message.content.split()[i]) < 4:
|
if len(message.content.split()[i]) < 4:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue