'Discord.py if not message.content.startswith('') or not message.content.starstwith(''):

How can I write message.content.startswith('') with method not and with method or for example: the problem here is that it doesnt delete the commands that dont start from /start1: or start2:

if not message.content.startswith('/start1:') or not message.content.starstwith('/start2:'):
                await message.delete() 
            else:
                await message.channel.send("working") 


Solution 1:[1]

I think it must be separated like this..

if message.content.startswith("") or message.content.startswith(""):
   await message.channel.send("Working2")
else:
   await message.channel.send("working")

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MorpKnight