lib/chatterbot/ui.rb
def get_oauth_verifier
      green "****************************************"
      green "****************************************"
      green "****        BOT AUTH TIME!          ****"
      green "****************************************"
      green "****************************************"      

      puts "You need to authorize your bot with Twitter.\n\nPlease login to Twitter under the bot's account. When you're ready, hit Enter.\n\nYour browser will open with the following URL, where you can authorize the bot.\n\n"

      url = request_token.authorize_url

      puts url

      puts "\nIf that doesn't work, you can open the URL in your browser manually."

      puts "\n\nHit enter to start.\n\n"
      
      STDIN.readline.chomp
      
      Launchy.open(url)

      # sleep here so that if launchy has any output (which it does
      # sometimes), it doesn't interfere with our input prompt
     
      sleep(2)

      puts "Paste your PIN and hit enter when you have completed authorization.\n\n"
      print "> "

      STDIN.readline.chomp.strip
    rescue Interrupt => e
      exit
    end
def get_oauth_verifier
      green "****************************************"
      green "****************************************"
      green "****        BOT AUTH TIME!          ****"
      green "****************************************"
      green "****************************************"      

      puts "You need to authorize your bot with Twitter.\n\nPlease login to Twitter under the bot's account. When you're ready, hit Enter.\n\nYour browser will open with the following URL, where you can authorize the bot.\n\n"

      url = request_token.authorize_url

      puts url

      puts "\nIf that doesn't work, you can open the URL in your browser manually."

      puts "\n\nHit enter to start.\n\n"
      
      STDIN.readline.chomp
      
      Launchy.open(url)

      # sleep here so that if launchy has any output (which it does
      # sometimes), it doesn't interfere with our input prompt
     
      sleep(2)

      puts "Paste your PIN and hit enter when you have completed authorization.\n\n"
      print "> "

      STDIN.readline.chomp.strip
    rescue Interrupt => e
      exit
    end
print out a message about getting a PIN from twitter, then output
 the URL the user needs to visit to authorize