Configure any number of twitter bots
Currently contains three actions:
- Follow: Follow one of your follower's followers
- Unfollow: Unfollow someone who doesn't follow you
- Favorite: Favorite a tweet trending in Raleigh, NC (location can be changed in
resources/favorite.js
constructor
In the config file you can assign weights to each of these actions.
Requires Node v4+
Clone the repository and run npm install
Create new config file in the config directory named tw.[yourBotName].json
, see the example in config/example.tw.botName.json
To run the bot: node bot.js 'botName'
To automate this, set up a cronjob for each bot:
In the terminal on your server:
crontab -e
Then add this line:
0,30 * * * * node /path/to/bot.js 'botName' >> /path/to/logs/logFileName.txt
You can configure your cronjob however you want, this example executes at the top of the hour and at thirty minutes past the hour