A Twitter bot, which replies Tokyo-Amesh image
Add this line to your application's Gemfile:
gem 'ramesh-bot-twitter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ramesh-bot-twitter
- Create bot account
- Create Twitter app at Twitter Application Management
- Get app tokens and keys
- Clone this repository and deploy to Heroku
$ git clone https://github.com/dtan4/ramesh-bot-twitter.git your-ramesh-bot
$ cd your-ramesh-bot
$ heroku create your-ramesh-bot
$ git push heroku master
$ heroku config:set \
RAMESH_BOT_ACCESS_TOKEN=... \
RAMESH_BOT_ACCESS_TOKEN_SECRET=... \
RAMESH_BOT_CONSUMER_KEY=... \
RAMESH_BOT_CONSUMER_SECRET=...\
RAMESH_BOT_SCREEN_NAME=your-ramesh-bot-screen-name
$ heroku ps:scale bot=1
key | description | required |
---|---|---|
RAMESH_BOT_ACCESS_TOKEN |
Access token | o |
RAMESH_BOT_ACCESS_TOKEN_SECRET |
Access token secret | o |
RAMESH_BOT_CONSUMER_KEY |
Consumer key | o |
RAMESH_BOT_CONSUMER_SECRET |
Consumer secret | o |
RAMESH_BOT_SCREEN_NAME |
Screen name of your bot | o |
RAMESH_BOT_WHITE_LIST |
White list of screen names, which are allowed to send request |
- Fork it ( https://github.com/dtan4/ramesh-bot-twitter/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 a new Pull Request