-
Notifications
You must be signed in to change notification settings - Fork 2
/
lita_config.rb
45 lines (35 loc) · 1.45 KB
/
lita_config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'bundler'
require_relative './lita_env'
require_relative './load_handlers'
Bundler.require(:default, Lita::env)
Dotenv.load(ENV["DOTENV_FILE"] || '.env')
Thread.abort_on_exception = true
Lita.configure do |config|
# The name your robot will use.
config.robot.name = "Lita"
# The locale code for the language to use.
# config.robot.locale = :en
# The severity of messages to log. Options are:
# :debug, :info, :warn, :error, :fatal
# Messages at the selected level and above will be logged.
config.robot.log_level = :info
# 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 = ["1", "2"]
if Lita::env?(:production)
# The adapter you want to connect with. Make sure you've added the
# appropriate gem to the Gemfile.
config.robot.adapter = :slack
## Example: Set options for the chosen adapter.
config.adapters.slack.token = ENV["SLACK_TOKEN"]
config.adapters.slack.parse = "mrkdwn"
# config.adapters.slack.rtm_connection_verify_peer = false
end
config.http.port = ENV["PORT"] || 80
config.redis[:host] = ENV["REDIS_HOST"] || "localhost"
# config.redis.host = "127.0.0.1"
# config.redis.port = 1234
config.handlers.lintott.api_key = ENV["FOURSQUARE_TOKEN"]
config.handlers.karma.link_karma_threshold = nil
end