Slack Ruby Bot Server RealTime (RTM) Extension
An extension to slack-ruby-bot-server that makes it easy to implement Slack RTM bots.
You can use one of the sample applications that use MongoDB or ActiveRecord to bootstrap your project and start adding slack command handlers on top of this code.
Add 'slack-ruby-bot-server-rtm' to Gemfile.
SlackRubyBotServer::RealTime.configure do |config| config.server_class = ... end
The following settings are supported.
|server_class||Handler class for additional events.|
You can override the server class to handle additional events, and configure the service to use it.
class MyServer < 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::RealTime.configure do |config| config.server_class = MyServer end
Copyright & License
Copyright Daniel Doubrovkine and Contributors, 2020