title: discord.py: wait_for() method's check argument preventing execution
body: <h2>Context</h2>
  <p>I am making a <strong>discord.py(rewrite-v1.0+) bot</strong>, I created a cog with some basic sql and python to make a chatbot, but when a 'message' event occurs the wait_for method completely ignores it.
  <br>
  I am new to Discord.py so any help would be greatly appreciated!</p>
  <p><br><hr></p>
  <h2>Mini code:</h2>
  <pre class="lang-py prettyprint-override"><code>&quot;&quot;&quot;ai cog&quot;&quot;&quot;
  import discord
  from discord.ext import commands
  import asyncio
  
  class ai(commands.Cog):
      def __init__(self, bot):
          self.bot = bot
  
      @commands.command(aliases=['c','ch','cha'])
      async def chat(self, ctx, *, message:str):
          Bot = 'Hello!'
  
          # I am guessing problem is here
          def nobotspeakshere(message):
                  if message.author.bot == True:
                      return False
  
          while True:
              
              # try:
              msg = await user.wait_for('message', check=nobotspeakshere)
              #                                    ^^^^^^^^^^
              #                  The problem seems to be here.             
              # except asyncio.TimeoutError:
                  # await ctx.send('Bot: bye')
                  # break
              
              you = msg.content
              
              print(you)
  
              if you.lower() in [&quot;&quot;, &quot;bye!&quot;, &quot;bye&quot;]:
                  return await ctx.send('Bot: ' + Bot)
  
              await ctx.send('Bot: Bye!')
  
              #some working sql
              #sql gives bot = &quot;something else&quot;
  
  def setup(bot):
      bot.add_cog(ai(bot))
  
  </code></pre>
  <hr>
  <h3>Expected output</h3>
  <p>Prints variable 'you' and continues execution<br></p>
  <h3>Output</h3>
  <p>Ignores the message entered in a channel<br></p>
  <h3>Expected Problem</h3>
  <p><code>nobotspeakshere</code> function is not functioning as expected.<br><hr>
  <br></p>