How do I make my discord bot show its prefix when I mention it (python) [closed]

I want to be able to type “@Hu Tao bot prefix” and the bot will respond with what the current prefix is, for some reason it is not working, and it also shows no error message, my current prefix is: client = commands.Bot(command_prefix = '-')

Answer

You can use message.mentions in a event:-

@client.event
async def on_message(message):
  if client.user in message.mentions:
    await message.channel.send("You can type `tnj.help` for help")
  await client.process_commands(message)