title: Creating twitch irc bot (Login authentication failed)
body: <p>I am using Python 2.7 and i'm trying to create IRC bot for twitch but i have a problem. I created bot in other IRC like "webchat.freenode.net" and everything was ok..My code for twitch :</p>
  
  <pre><code>import time
  import socket
  
  
  HOST = "irc.twitch.tv"
  PORT = 6667
  BOTNICK = "thebot"
  PASSWORD = "oauth:nph788dap10fu6ozlzv1b32fzm4r8q"
  CHAN = "#fordotis10"
  
  
  
  
  irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  irc.connect((HOST, PORT))
  irc.setblocking(False)
  time.sleep(1)
  
  irc.send("PASS "+PASSWORD+"\r\n")
  
  time.sleep(1)
  
  irc.send("USER "+BOTNICK+" "+BOTNICK+" "+BOTNICK+" :I AM BOT!\r\n")
  
  time.sleep(1)
  
  irc.send("NICK "+BOTNICK+"\r\n")
  time.sleep(1)
  
  irc.send("JOIN "+CHAN+"\r\n")
  
  text= ""
  while 1:
      try:
          text = irc.recv(1024)
          print text
      except Exception:
          pass
      if text.find("PING")!=-1:
          irc.send("PONG "+text.split()[1]+"\r\n")
  </code></pre>
  
  <p>With this code , i get the following error:</p>
  
  <p>:tmi.twitch.tv NOTICE * :Login authentication failed</p>
  
  <p>What am i missing? </p>