title: How to fix discord.py bot hosted by Heroku not going online?
body: <p>I'm trying to get my discord.py bot hosted for free, and I heard Heroku is a good option. My dyno is working perfectly, and it's switched on, but when I deploy, my bot does not go online. I have no errors, it says it's deployed, but my bot never goes online.</p>
  
  <p>I have tried regenerating the bot token, and putting it in my Heroku app, but it still won't work.</p>
  
  <pre class="lang-py prettyprint-override"><code>import discord
  from discord.ext import commands
  from discord.ext.commands import bot
  import asyncio
  import requests
  import os
  
  description = '''EchoBot by EchoNoahGaming'''
  bot = commands.Bot(command_prefix='-', description=description)
  
  @bot.event
  async def on_ready():
      print('Logged in as')
      print(bot.user.name)
      print(bot.user.id)
      print('------')
  
  @bot.command()
  async def announcement(ctx, *, args):
      """Announcement command!"""
      embed=discord.Embed(title="Announcement", description=args, color=0x7700aa)
      embed.set_footer(text="By EchoNoahGaming")
      await ctx.send("@everyone", embed=embed)
  
  client.run(str(os.environ.get('BOT_TOKEN')))
  </code></pre>
  
  <p>That is the bot code.</p>
  
  <p>I expected the bot to come online, because there were no errors, but it didn't, and it stayed offline.</p>
  
  <p>The Procfile code is</p>
  
  <pre><code>worker: python3 bot.py
  </code></pre>
  
  <p>The requirements.txt content is</p>
  
  <pre><code>discord
  asyncio
  </code></pre>
  
  <p>If you need anything else, tell me. The GitHub link is <a href="https://github.com/EchoNoahGaming/echobot/blob/master/" rel="nofollow noreferrer">https://github.com/EchoNoahGaming/echobot/blob/master/</a> but i'll post any files on here so it's easier.</p>