Atabodi
Unofficial idobata.io api client
Installation
Add this line to your application's Gemfile:
gem 'atabodi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install atabodi
Usage
require 'atabodi'
client = Atabodi::Client.new(api_token: 'your_idobata_bot_api_token_here')
# Get bot lists
res = client.list_bots
p res.body.bots
# => [{"id":3543,"name":"ys","icon_url":"https://idobata.s3.amazonaws.com/uploads/bot/icon/3543/mihashi.jpg","api_token":"your_idobata_bot_api_token_here","status":"offline","channel_name":"presence-guy_3543"}]
# Update your idobata bot icon
client.update_bot_icon(id: 3543, file_path: 'path/to/icon/image.jpg')
Contributing
- Fork it ( http://github.com/hanachin/atabodi/fork )
- 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