Sha256: 7645abec13affe17ae7f7a52bdbe35fdb49b42481f8730f792655af1b3c6ebc4

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module BotAdded
        # An integration bot was added.
        # @see https://api.slack.com/events/bot_added
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/bot_added.json
        def self.call(client, data)
          client.bots[data.bot.id] = Models::Bot.new(data.bot)
        end
      end
    end
  end
end

Slack::RealTime::Client.events['bot_added'] = Slack::RealTime::EventHandlers::BotAdded

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-0.6.0 lib/slack/real_time/event_handlers/bot_added.rb