A collection of tools for maintaining commercial twitter accounts, built on top of the Twitter Gem
- Clone, run
bundle install. - Run
cp .env.sample .envto make a copy of the environment variable files - Populate
.envwith your keys from https://apps.twitter.com/
This setting, when enabled, requires you to allow every action the script wants to take on your behalf. To enable, change the code at the top of twitter_bot.rb
MODERATION_MODE = true.freeze #toggle between true and falseBy calling add_users_to_list you can provide a slug for a list (already created on your account) and a serch term (listed here)
add_users_to_list(client, 'dog-lovers', '"love dogs" :)')This will favourite tweets that match the search terms.
fave_tweets(client, '"love dogs" :)')There are a few items I'd like to add to this tool!
- Caching of actions to avoid duplicate API calls and not hit limit sooner
- Following based on search terms
- Follow/Unfollower management tools ... Feel free to send a PR!