Method: ChatBot#login

Defined in:
lib/chatx.rb

#login(servers = @default_server) ⇒ Boolean

Logs the bot into the three SE chat servers.

servers were authenticated successfully, false otherwise.

Returns:

  • (Boolean)

    A bool indicating the result of authentication: true if all three



75
76
77
78
79
# File 'lib/chatx.rb', line 75

def (servers = @default_server)
  servers = [servers] unless servers.is_a?(Array) || servers.is_a?(Hash)
  return if authenticate(servers)
  throw "Login failed; Exiting."
end