title: Improper token passed
body: <p>I'm following a basic tutorial for a Python Discord bot on YouTube and my code is underneath. It says:</p>
  <blockquote>
  <p>discord.errors.LoginFailure: Improper token has been passed.</p>
  </blockquote>
  <p>Before anyone asks, yes I have put in the bot token, not the id or secret.</p>
  <pre><code>import discord
  from discord.ext.commands import Bot
  from discord.ext import commands
  import asyncio
  import time
  
  Client = discord.Client()
  client = commands.Bot(command_prefix = &quot;!&quot;)
  
  @client.event
  async def on_ready():
      print(&quot;Bot is ready!&quot;)
  
  @client.event
  async def on_message(message):
      if message.content == &quot;cookie&quot;:
          await client.send_message(message.channel, &quot;:cookie:&quot;)
  
  client.run(&quot;token is here&quot;)
  </code></pre>