I have the following segment of code:
if message.author.name == "Rythm" or "Groovy":
print("Deleting a message because it is from Rythm or Groovy")
print(message.author.name)
await message.delete()
I want to filter out nonsense bot messages that come from 2 other bots.
However this results in the bot deleting every users messages on the server.
Deleting a message because it is from Rythm or Groovy
StinkyDinky
The user "StinkyDinky" got his message deleted.