UPDATE
For some reason, my discord bot is unable to respond to multiple messages though my code is seemingly correct. In addition, i'm experiencing an issue in VS Code: the terminal isn't being updated unless i close, reopen the editor and rerun the code! Keep in mind that the discord bot doesn't run unless the program displays 'ready' on the terminal. And because of that terminal issue, my bot isn't running perfectly! So what can result in such a problem?
NOTE :
When i click the run button is VSC, nothing changes.(it's not working unless i reopen the editor)
...
@bot.event
async def on_message(message):
events = ['happy birthday', 'joyeux anniversaire']
games = ['rocket league', 'Minecraft']
while True:
if message.author == bot.user:
return
for event in events:
if event in message.content.lower():
await message.channel.send('Happy Birthday! 🎈🎉')
for game in games:
if game in message.content.lower():
await message.channel.send('It\'s play time ! ')
...
if 'rocket league' in message.content.lower(): ...
? It is basic knowledge of pythonfor text in games: if text in message.content.lower(): ...
? It is basic knowledge of Python