title: give bot.listen a name , to call the name for later use . discord.py
body: <p>currently iam creating a log embed .
  and i want give a <code>bot.listen</code> event a name.
  and use it as <code>Embed(title=f'{the name}'</code> so i can use the same embed i build for multiple listen events .
  for example :</p>
  <pre><code>#bot.py
  from http import client
  import discord
  import asyncio
  from discord.ext import commands
  import os
  from dotenv import load_dotenv
  from datetime import datetime, timedelta, date, time, timezone
  import time
  import loging
  load_dotenv()
  
  TOKEN = os.getenv(&quot;DISCORD_TOKEN&quot;)
  
  bot = commands.Bot(command_prefix=commands.when_mentioned_or(&quot;$&quot;), help_command=None)
  timestamp = datetime.now()
  timenow = str(timestamp.strftime(r&quot;%x, %X&quot;))
  
  @bot.listen(name='complexity')#give the name i want show as tittle 
  async def on_message(message):
      if any(x in message.content.lower() for x in [&quot;complexity&quot;, &quot;complex&quot;]):
          await message.add_reaction(r&quot;:complexity:945474998208958517&quot;)
          await loging.meslog(bot, message)
  
  bot.run(TOKEN)
  </code></pre>
  <pre><code>#loging.py
  from http import client
  import discord
  import asyncio
  from discord.ext import commands
  import os
  from datetime import datetime, timedelta, date, time, timezone
  import time
  
  timestamp = datetime.now()
  timenow = str(timestamp.strftime(r&quot;%x, %X&quot;))
  
  async def meslog(bot, message):
      username = (message.author)
      usernameid = str(message.author.id)
      messagein = str(message.content)
      messageid = str(message.id)
      if message.guild:
          channel = str(message.channel.name)
          channelid = str(message.channel.id)
          channelping = str(message.channel.mention)
      logingchan = await bot.fetch_channel(983811124929630239)
      em = discord.Embed(title=f'{message.name}', description=f'{timenow}', color=0x00FF00)
  #{message.name} would output the name of the listen event.
  #in this case Complexity
      em.set_thumbnail(url=username.avatar_url)
      em.add_field(name=&quot;Channel:&quot;, value=f'{channelping} \n{channelid}', inline=True)
      em.add_field(name=&quot;User:&quot;, value=f'{username}\n{usernameid}', inline=True)
      em.add_field(name=&quot;Message:&quot;, value=f'{messagein}\n{messageid}', inline=False)
      await logingchan.send(embed=em)
  </code></pre>
  <p>i know its worng and dont work , but is there any way to do waht i mean to do ?
  what is the correct way pls teach me.</p>