title: Serving Discord bot and web requests simultaneously
body: <p>I am currently building a Flask application where I use the python discord API to listen to commands and return simple messages.</p>
  
  <pre><code>    bot = commands.Bot(command_prefix="!", description="Bot")
  
      @bot.command()
      async def ping(ctx):
          await ctx.send('%s PONG' % ctx.message.author.mention)
  
      bot.run(BOT_TOKEN)
  </code></pre>
  
  <p>At the same time, I am serving a webpage at '/' but when I try to go onto the webpage, the page just hangs. I launch my flask application using gunicorn with the command "gunicorn -b 0.0.0.0:8080 --chdir application/site/ main:app --reload --log-level=DEBUG" and in the output, I get</p>
  
  <pre><code>    [2019-08-26 23:17:04 -0400] [50370] [INFO] Starting gunicorn 19.9.0
      [2019-08-26 23:17:05 -0400] [50370] [DEBUG] Arbiter booted
      [2019-08-26 23:17:05 -0400] [50370] [INFO] Listening at: http://0.0.0.0:8080 (50370)
      [2019-08-26 23:17:05 -0400] [50370] [INFO] Using worker: sync
      [2019-08-26 23:17:05 -0400] [50373] [INFO] Booting worker with pid: 50373
      [2019-08-26 23:17:05 -0400] [50370] [DEBUG] 1 workers
      [2019-08-26 23:17:08 -0400] [50373] [INFO] Logged in as Discord Bot 603846646383509504
      [2019-08-26 23:17:35 -0400] [50370] [CRITICAL] WORKER TIMEOUT (pid:50373)
      [2019-08-26 23:17:35 -0400] [50373] [INFO] Worker exiting (pid: 50373)
      [2019-08-26 23:17:35 -0400] [50374] [INFO] Booting worker with pid: 50374
      [2019-08-26 23:17:37 -0400] [50374] [INFO] Logged in as Discord Bot 603846646383509504
  </code></pre>
  
  <p>The discord bot works fine but loading the webpage does not. Am I missing something for my flask application to serve both requests at the same time or is this expected behavior?</p>