title: import discord indentationerror: unexpected indent
body: <p>Hello I am using heroku for hosting my discord.py not but I am getting errors in the logs and my botvis not getting online
  You can check my github repo at
  <a href="https://github.com/reyyan987/organic" rel="nofollow noreferrer">https://github.com/reyyan987/organic</a>
  Discord.py</p>
  <pre><code>
      import discord
  from discord.ext import commands
  import datetime
  
  from urllib import parse, request
  import re
  
  bot = commands.Bot(command_prefix='&gt;', description=&quot;This is a Helper Bot&quot;)
  
  @bot.command()
  async def ping(ctx):
      await ctx.send('pong')
  
  @bot.command()
  async def sum(ctx, numOne: int, numTwo: int):
      await ctx.send(numOne + numTwo)
  
  @bot.command()
  async def info(ctx):
      embed = discord.Embed(title=f&quot;{ctx.guild.name}&quot;, description=&quot;Lorem Ipsum asdasd&quot;, timestamp=datetime.datetime.utcnow(), color=discord.Color.blue())
      embed.add_field(name=&quot;Server created at&quot;, value=f&quot;{ctx.guild.created_at}&quot;)
      embed.add_field(name=&quot;Server Owner&quot;, value=f&quot;{ctx.guild.owner}&quot;)
      embed.add_field(name=&quot;Server Region&quot;, value=f&quot;{ctx.guild.region}&quot;)
      embed.add_field(name=&quot;Server ID&quot;, value=f&quot;{ctx.guild.id}&quot;)
      # embed.set_thumbnail(url=f&quot;{ctx.guild.icon}&quot;)
      embed.set_thumbnail(url=&quot;https://pluralsight.imgix.net/paths/python-7be70baaac.png&quot;)
  
      await ctx.send(embed=embed)
  
  @bot.command()
  async def youtube(ctx, *, search):
      query_string = parse.urlencode({'search_query': search})
      html_content = request.urlopen('http://www.youtube.com/results?' + query_string)
      # print(html_content.read().decode())
      search_results = re.findall('href=\&quot;\\/watch\\?v=(.{11})', html_content.read().decode())
      print(search_results)
      # I will put just the first result, you can loop the response to show more results
      await ctx.send('https://www.youtube.com/watch?v=' + search_results[0])
  
  # Events
  @bot.event
  async def on_ready():
      await bot.change_presence(activity=discord.Streaming(name=&quot;Tutorials&quot;, url=&quot;http://www.twitch.tv/accountname&quot;))
      print('My Ready is Body')
  
  
  @bot.listen()
  async def on_message(message):
      if &quot;tutorial&quot; in message.content.lower():
          # in this case don't respond with the word &quot;Tutorial&quot; or you will call the on_message event recursively
          await message.channel.send('This is that you want http://youtube.com/fazttech')
          await bot.process_commands(message)
  
  bot.run(os.getenv('Token'))
  </code></pre>
  <p>You can check other files at my github respoitry
  My logs</p>
  <pre><code>2021-02-26T08:21:20.856803+00:00 heroku[worker.1]: Starting process with command `python filename.py`
  2021-02-26T08:21:21.541356+00:00 heroku[worker.1]: State changed from starting to up
  2021-02-26T08:21:24.270010+00:00 heroku[worker.1]: Process exited with status 1
  2021-02-26T08:21:24.340039+00:00 heroku[worker.1]: State changed from up to crashed
  2021-02-26T08:21:24.201416+00:00 app[worker.1]:   File &quot;filename.py&quot;, line 2
  2021-02-26T08:21:24.201450+00:00 app[worker.1]:     import discord
  2021-02-26T08:21:24.201450+00:00 app[worker.1]:     ^
  2021-02-26T08:21:24.201451+00:00 app[worker.1]: IndentationError: unexpected indent
  </code></pre>