Twitter Bot - skeleton for twitter robots
If you need to create twitter bot that will eternally iterate over own followers - this is what you need.
Installation
Install it from npm:
npm install twitter_bot
Usage
- Register twitter account for your bot.
- Register twitter application for your bot.
- Get access tokens for your application from your bot's account.
- Write some codevar util =TwitterBot =bot;// overwrite constructor{TwitterBot// make something cool in constructorthisisCool = true;};util;// main function that you must implementMyBotprototype {console;;}// create instance of your botbot =consumer_key : "<consumer key from application settings page>"consumer_secret : "<consumer secret from application settings page>"access_token_key : "<auth token of your bot given to your app>"access_token_secret : "<auth token secret of your bot given to your app>"concurrency : 10 // concurrency level, 10 is default;// start processing your followersbotstart;// after 10 seconds stop iterating new followers,// but finish processing current ones;// this is it.
- Promote yourself.
Projects
This project came from @listwatcher (sources) code and is used in @unfollowr twitter project to manage more than 200K followers.