This is the code below. How do i define ctx here? This is the error that i get, NameError: name 'ctx' is not defined
async def on_message(message):
if message.author.id == bot.user.id:
return
msg_content = message.content.lower()
curseWord = [insert bad words here]
author = message.author.id
if any(word in msg_content for word in curseWord):
await message.delete()
embed=discord.Embed(title="No No Word", description=f"Hey {ctx.author.name} Those words arent allowed here!", color=0x00FFFF)
await ctx.send(embed=embed)
else:
await bot.process_commands(message)