Sample of my code
@client.event
async def on_message(message):
if message.author.bot:
return
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")
return
elif "umar" in message.content.lower():
await message.channel.send("Umar: Superman himself")
return
@client.command(aliases=["umar"])
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?