Sha256: 8e49c52ecd454b336f086d2f1d7602f80bf0fdb83e3c488cd33d8309ab0b071b

Contents?: true

Size: 340 Bytes

Versions: 4

Compression:

Stored size: 340 Bytes

Contents

module SlackRubyBot
  module Hooks
    class Hello
      attr_accessor :logger

      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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-bot-0.9.0 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.8.2 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.8.1 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.8.0 lib/slack-ruby-bot/hooks/hello.rb