Sha256: 60e6b482064fe113fc5a6873dcd2c878f30dd0d3a6d824be10acbfd18d39be90

Contents?: true

Size: 385 Bytes

Versions: 10

Compression:

Stored size: 385 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 team #{client.team.name} (#{client.team.id}) to https://#{client.team.domain}.slack.com."
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
slack-ruby-bot-0.12.0 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.11.2 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.11.1 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.11.0 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.10.5 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.10.4 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.10.3 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.10.2 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.10.1 lib/slack-ruby-bot/hooks/hello.rb
slack-ruby-bot-0.10.0 lib/slack-ruby-bot/hooks/hello.rb