Sha256: d815319df6fdca7cd43f408ac0b99b5c7fa80befede2e1ebfc182efad50c740a

Contents?: true

Size: 732 Bytes

Versions: 1

Compression:

Stored size: 732 Bytes

Contents

Upgrading Slack-Ruby-Bot-Server
===============================

### Upgrading to >= 0.3.0

#### Remove Monkey-Patching of SlackRubyBotServer::Server

In the past adding events required monkey-patching of the server class. You can now override the server class to handle additional events, and configure the service to use yours.

```ruby
class MyServerClass < SlackRubyBotServer::Server
  on :hello do |client, data|
    # connected to Slack
  end

  on :channel_joined do |client, data|
    # the bot joined a channel in data.channel['id']
  end
end

SlackRubyBotServer.configure do |config|
  config.server_class = MyServerClass
end
```

See [#18](https://github.com/dblock/slack-ruby-bot-server/issues/18) for more information.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.3.0 UPGRADING.md