No commit activity in last 3 years
No release in over 3 years
slack-rtm-bot-helper supports development slack bot using rtm.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
>= 0
~> 10.0
~> 3.0

Runtime

 Project Readme

Slack::Rtm::Bot::Helper

This gem help develop slack bot using Real Time Message API.

Installation

Add this line to your application's Gemfile:

gem 'slack-rtm-bot-helper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install slack-rtm-bot-helper

Usage

require 'slack-rtm-bot-helper'

Slack::Rtm::Bot::Helper.run(token: '<your slack token>', channel: '<channel name>', name: '<bot name>') do
  # input your logic that create reply message.
  # return string
end
  • token and block is required.
  • if set channel , send message only specified channel.
  • if set name, only reaction message starts @botname.

License

The gem is available as open source under the terms of the MIT License.