Hato plugin to send messages via Twitter.
Configuration
Hato::Config.define do
api_key 'test'
host '0.0.0.0'
port 9699
# ...
tag 'test' do
plugin 'Twitter' do
consumer_key 'YOUR COMSUMER KEY'
consumer_secret 'YOUR CONSUMER SECRET'
access_token 'YOUR ACCESS TOKEN'
access_token_secret 'YOUR ACCESS TOKEN SECRET'
message_template '[<%= args[:tag] %>] <%= args[:message] %>'
end
end
# ...
end
Installation
Add this line to your application's Gemfile:
gem 'hato-plugin-twitter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hato-plugin-twitter
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request