Twitter Bot that retweets people looking for support going vegan
VegAssist tracks usage of the term "vegan" on twitter's public stream, and processes each item, looking for exact matches on an array of preset phrases. If there's a match, the bot will retweet.
- Clone this repository
- Install node.js and npm
- Run
npm install
in the directory that you cloned this repository into - Create a
settings.js
file with the format below, filling in your Twitter API credentials and Twitter botname: - Run
node .
module.exports = {
CREDS: {
consumer_key: '...',
consumer_secret: '...',
access_token: '...',
access_token_secret: '...'
},
FILTERS: [],
HANDLE: 'botname'
}
Simply run npm test
Retweets can be disabled for testing purposes by using the argument --dry-run
, e.g. node vegassist.js --dry-run
. In dry run mode, matching tweets will be logged to the console but not retweeted.