Class: Twitch::Bot::Client::AuthenticatedHandler

Inherits:
EventHandler
  • Object
show all
Defined in:
lib/twitch/bot/default_handlers.rb

Overview

Handle the :authenticated event required for joining our channel.

Instance Attribute Summary

Attributes inherited from EventHandler

#client, #event

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from EventHandler

#initialize

Constructor Details

This class inherits a constructor from Twitch::Bot::EventHandler

Class Method Details

.handled_eventsObject



24
25
26
# File 'lib/twitch/bot/default_handlers.rb', line 24

def self.handled_events
  [:authenticated]
end

Instance Method Details

#callObject



20
21
22
# File 'lib/twitch/bot/default_handlers.rb', line 20

def call
  client.join_default_channel
end