I am making an STFU bot to make people shut up about when did I ask and stuff and I'm wondering how I would make it so my bot will ignore white space when someone sends the keyword. Here is my code:
@client.event
async def on_message(message):
if (message.author.bot):
return
if 'did i ask' in message.content.lower():
await message.channel.send('{} Shut up, the world doesnt revolve around you.'.format(message.author.mention))
if 'who asked' in message.content.lower():
await message.channel.send('{} Shut up, the world doesnt revolve around you.'.format(message.author.mention))
if 'stfu' in message.content.lower():
await message.channel.send('Was I summoned?')