Fork from plorry/VegAssist to retweet people looking for support going vegan for 5 Minutes 5 Vegans. https://5minutes5vegans.org
This bot tracks usage of the term "vegan" - and its translated variants depending on the config - on Twitter's public stream, and processes each item, looking for exact matches on an array of preset phrases. This bot can be setup for multiple authorised accounts for the same app, retweeting messages matching only certain filters to only certain accounts.
- Run
yarn add 5m5v-bot
to install the bot to your project - Copy the
5m5v-config.example.yaml
file innode_modules/5m5v-bot
into your own project under5m5v-config.yaml
and configure the bot - Run
yarn 5m5v-bot
in the directory of your project to run the bot
You can install the bot globally to your system with yarn global add 5m5v-bot
instead. From then you can run yarn 5m5v-bot
from any folder, as long as it contains a config file.
- Clone this repository
- Run
yarn install
in the directory that you cloned this repository into - Copy the
5m5v-config.example.yaml
file to your own5m5v-config.yaml
and configure the bot - Run
node .
in the directory of the repository to run the bot
The configuration is loaded from the .env
file in the root of the project. The following keys are required:
The endpoint of the 5M5V API that will receive the tweets.
The API key of the 5M5V API that will receive the tweets.
The email address of the Twitter account that the bot will use to stream tweets.
The username of the Twitter account that the bot will use to stream tweets.
The password of the Twitter account that the bot will use to stream tweets.
Simply run yarn test
Retweets can be disabled for testing purposes by using the argument --dry-run
, e.g. node . --dry-run
. In dry run mode, matching tweets will be logged to the console but not retweeted.