lib/chatterbot/client.rb
def get_screen_name(t = @access_token)
      return unless @screen_name.nil?
      return if t.nil?

      oauth_response = t.get('/1.1/account/verify_credentials.json')
      @screen_name = JSON.parse(oauth_response.body)["screen_name"]
    end
def get_screen_name(t = @access_token)
      return unless @screen_name.nil?
      return if t.nil?

      oauth_response = t.get('/1.1/account/verify_credentials.json')
      @screen_name = JSON.parse(oauth_response.body)["screen_name"]
    end
def get_screen_name ( t = @access_token ) return unless @screen_name . nil? return if t . nil? oauth_response = t . get ( '/1.1/account/verify_credentials.json' ) @screen_name = JSON . parse ( oauth_response . body ) [ "screen_name" ] end
query twitter for the bots screen name. we do this during the bot registration process
query twitter for the bots screen name . we do this during the bot registration process