Skip to content

retweet and like the contents of a twitter list based on keywords to reject and accept certain tweets.

Notifications You must be signed in to change notification settings

MSFTserver/twitter-retweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Retweet

This is a simple twitter bot, designed to retweet and like the contents of a twitter list based on keywords to reject and accept certain tweets.

Setup Your Own

  1. Install node.js & npm (if you haven't already).
  2. Download this repo with git clone [email protected]:MSFTserver/twitter-retweet.git.
  3. in Terminal or Command Prompt, Navigate into the folder and run npm install to download dependencies.
  4. Rename .env.example to .env, or you can actually just set them in your systems Environmental Variables and skip step 5.
  5. Open .env enter the Account Name, enter the Lists ID number (can be found in the URL), enter Reject keywords you want to EXCLUDE, also the Accept keywords on what you want the bot to INCLUDE. lastly enter the keys for your bot. If you have don't have keys Create a twitter application HERE, grant it the necessary access, and generate your tokens/keys.
  6. run the bot npm run start.

Running the test

The test script will see if the bot can grab the member IDs from a twitter list. It will also pipe in tweets from the statuses/sample API for 30 seconds running the filter checks on the tweets and retweeting/liking.

NOTE: It is recommended to use a alternative account for testing with as it will make a lot of retweets and likes on the profile.
  1. Create a new twitter application HERE and keys to run the test as it will attempt to like and retweet from the piped in tweets.
  2. Open .env and edit the values prefixed with TEST eg.TESTLISTID=
  3. Run script with npm run test

Credit

Twitter Retweet is written in node.js

This project was originally forked from twitter-listbot changing the API client to twit for more error handling and other small changes.

About

retweet and like the contents of a twitter list based on keywords to reject and accept certain tweets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published