lib/slack-ruby-bot/hooks/hello.rb in slack-ruby-bot-0.7.0 vs lib/slack-ruby-bot/hooks/hello.rb in slack-ruby-bot-0.8.0
- old
+ new
@@ -1,10 +1,14 @@
module SlackRubyBot
module Hooks
- module Hello
- extend Base
+ class Hello
+ attr_accessor :logger
- def hello(client, _data)
+ def initialize(logger)
+ self.logger = logger
+ end
+
+ def call(client, _data)
return unless client && client.team
logger.info "Successfully connected to https://#{client.team.domain}.slack.com."
end
end
end