Ruby gem to create bot for Slack easily and flexibly.
Add this line to your application's Gemfile:
gem 'slatan'
And then execute:
$ bundle
Or install it yourself as:
$ gem install slatan
$ (bundle exec) slatan generate /path/to/your/preference/test.rb'
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.
##Documentation Under construction...
Bug reports and pull requests are welcome on GitHub at https://github.com/kudohamu/slatan.
The gem is available as open source under the terms of the MIT License.