This retweet bot is written in Ruby, which then deployed onto Heroku with the scheduler add-on which would run the twitterBot.rb file.
- Git fork/clone this repository
git clone https://github.com/herecomesjaycee/retweet-bot.git
- Change directory into
cd retweet-bot
- Go to
https://apps.twitter.com/
and create a new application for retweet bot - Create a .env file in root directory with the credentials [access token, access token secret, consumer key, consumer secret] provided in step 3
- Edit the search term on line 18 from
#gudetama #英語
to the hashtag you wish to replace - On your terminal, run
ruby twitterBot.rb
- Go to your twitter timeline and you should see a retweet from the most recent tweet on your desired hashtag
I chose Heroku however I am sure there will be many other platform you could use to automate the bot
- Go to Heroku and create a new application via the dashboard, or via command line. For instruction, please see
https://devcenter.heroku.com/articles/creating-apps
- Once the app is successfully deployed, create a Heroku add-on via the dashboard, or via command line. For instruction, please see
https://devcenter.heroku.com/articles/scheduler