lib/socrates/bots/slack_bot.rb in socrates-0.1.0 vs lib/socrates/bots/slack_bot.rb in socrates-0.1.1
- old
+ new
@@ -7,16 +7,15 @@
Slack.configure do |config|
config.token = ENV["SLACK_API_TOKEN"]
config.logger = Logger.new(STDOUT)
config.logger.level = Logger::INFO
- raise "Missing ENV[SLACK_API_TOKEN]!" unless config.token
+ raise "Missing ENV['SLACK_API_TOKEN']!" unless config.token
end
@slack_client = Slack::RealTime::Client.new
@adapter = SlackAdapter.new(@slack_client)
- @storage = Storage::RedisStorage.new
- @dispatcher = Core::Dispatcher.new(storage: @storage, adapter: @adapter, state_factory: state_factory)
+ @dispatcher = Core::Dispatcher.new(adapter: @adapter, state_factory: state_factory)
end
def start
@slack_client.on :message do |data|
# puts "> #{data}"