title: Get message author in Discord.py
body: <p>I am trying to make a fun bot for just me and my friends. I want to have a command that says what the authors username is, with or without the tag. I tried looking up how to do this, but none worked with the way my code is currently set up.</p>
  
  <pre><code>import discord
  client = discord.Client()
  
  @client.event
  async def on_message(message):
      if message.author == client.user:
          return
      if message.content.startswith('$WhoAmI'):
          ##gets author.
          await message.channel.send('You are', username)
  
  client.run('token')
  </code></pre>
  
  <p>I hope this makes sense, all of the code i have seen is using the <code>ctx</code> or <code>@client.command</code></p>