Skip to content

Instantly share code, notes, and snippets.

@awaxa
Created February 13, 2015 19:29
Show Gist options
  • Save awaxa/d309603ef4201fb79645 to your computer and use it in GitHub Desktop.
Save awaxa/d309603ef4201fb79645 to your computer and use it in GitHub Desktop.
Lita.configure do |config|
config.robot.name = "botwaxa"
config.robot.log_level = :debug
# An array of user IDs that are considered administrators. These users
# the ability to add and remove other users from authorization groups.
# What is considered a user ID will change depending on which adapter you use.
# config.robot.admins = ["awaxa"]
config.robot.adapter = :irc
config.adapters.irc.server = "irc.freenode.net"
config.adapters.irc.channels = ["##awaxa"]
config.adapters.irc.log_level = :debug
config.adapters.irc.cinch = lambda do |cinch_config|
cinch_config.max_reconnect_delay = 123
cinch_config.port = "6697"
cinch_config.ssl.use = true
end
platform = :heroku if ENV["DYNO"]
platform = :boxen if ENV["BOXEN_SETUP_VERSION"]
case platform
when :heroku
config.redis[:url] = ENV["REDISTOGO_URL"]
config.http.port = ENV["PORT"]
when :boxen
config.redis[:url] = ENV["BOXEN_REDIS_URL"]
end
## Example: Set configuration for any loaded handlers. See the handler's
## documentation for options.
# config.handlers.some_handler.some_config_key = "value"
config.handlers.digitalocean.client_id = ENV['DIGITALOCEAN_CLIENT_KEY']
config.handlers.digitalocean.api_key = ENV['DIGITALOCEAN_API_KEY']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment