title: Message Counter for specific words discord.py
body: <p>I'm trying to build a message counter for discord.py that counts specific messages and then responds with the number of times the message was said in that day.</p>
  <p>I have the base but I  don't know how to build the actual counter... Here is my code:</p>
  <pre class="lang-py prettyprint-override"><code>import discord
  from discord.ext import commands
  import discord.utils
  
  class Message_Counter(commands.Cog):
      def __init__(self, client):
          self.client = client
  
      @commands.Cog.listener()
      async def on_message(self, ctx, message):
  
  
          if &quot;oof&quot; in message.content:
              await ctx.send(str(counter))
          elif &quot;Thot&quot; in message.content:
              await ctx.send(str(counter))
  
  def setup(client):
      client.add_cog(Message_Counter(client))
  </code></pre>
  <p>Any help would be much appreciated. I'm using the rewrite branch of discord.py if that helps.</p>
  <p>Basically for Thot it would respond with <code>**Thot counter**: &lt;number&gt;</code></p>
  <p>For oof it would respond with <code>**oof counter**: &lt;number&gt;</code></p>
  <p>so on so forth.</p>
  <p>I would also like it to reset the counter on a daily basis so that around every 24 hours the counter starts over.</p>