I am coding a python discord bot and I don't want two things to happen when I do a command

Sample of my code

async def on_message(message):
    if message.author.bot:
   await client.process_commands(message)
   if message.content.lower() == "i'm sad" or message.content.lower() == "i feel 
   depressed" or message.content.lower() == "feeling bad":
      await message.channel.send(":sneezing_face: it'll be ok")
  elif "umar" in message.content.lower():
     await message.channel.send("Umar: Superman himself")
async def inspire(ctx):
    async with aiohttp.ClientSession() as session:
        async with session.get('https://api.quotable.io/random') as q:
            js = await q.json()
            await ctx.send(f' {js["content"]}')

My command prefix is “.”
When I do .umar I only want the command to send not the message “Umar: Superman himself”. How do I fix this so only the command works on .umar?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.