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.
75 76 77 78 79 |
# File 'lib/chatx.rb', line 75 def login(servers = @default_server) servers = [servers] unless servers.is_a?(Array) || servers.is_a?(Hash) return if authenticate(servers) throw "Login failed; Exiting." end |