Class: Rodbot::Generator::Helpers

Inherits:
Object
  • Object
show all
Defined in:
lib/rodbot/generator.rb

Instance Method Summary collapse

Instance Method Details

#relay_extensionsObject



100
101
102
103
104
105
# File 'lib/rodbot/generator.rb', line 100

def relay_extensions
  Rodbot.plugins.extend_relay
  Rodbot.plugins.extensions[:relay].to_h do |name, _|
    [name, URI(Rodbot::Services::Relay.url(name)).port]
  end
end

#time_zoneObject



96
97
98
# File 'lib/rodbot/generator.rb', line 96

def time_zone
  Rodbot.config(:time_zone)
end