Sha256: 235e438b9d88df5b04e91fa3b2baef28fb04b31e84fdf72f4ba34f2bd610a61d
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
# Slatan Ruby gem to create bot for Slack easily and flexibly. ## Installation Add this line to your application's Gemfile: ```ruby gem 'slatan' ``` And then execute: $ bundle Or install it yourself as: $ gem install slatan ## Usage #### 1. Add 'Bot' integration and cory API token on Slack. #### 2. Generate event subscriber class. ``` $ (bundle exec) slatan generate /path/to/your/preference/test.rb' ``` #### 3. Write code to running slatan. ```ruby require 'slatan' require 'path/to/your/preference/test.rb' Slatan::Spirit.slack_token = 'xxxx-xxxxxx-xxxxxxxxxx' #or `export SLACK_TOKEN=xxxxx-xxxx-xxxxxxxxxx` Slatan::Ear.register(Test.new) #register event subscriber Slatan.run #write 'Slatan.run({ daemonize: true })' if you want to run daemonize mode. ``` #### 4. type 'ping' on Slack ![slatan example](https://dl.dropboxusercontent.com/u/74925506/slatan_invitation.png) ##Documentation Under construction... ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/kudohamu/slatan. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slatan-0.2.2 | README.md |