Home

Awesome

The List Cycle

A little process which cycles Twitter users on and off a list based on interactions recency of interaction.

The idea is that it will use one of your Twitter lists (by default, one called cycle) to keep a list of all the people you've interacted with recently (by default, the last month).

The script considers someone you've 'interacted with' as being:

Deployment

npm install

Define the following environment variables.

 TWITTER_OAUTH_CONSUMER_KEY=<seekrit>
 TWITTER_OAUTH_CONSUMER_SECRET=<seekrit>
 TWITTER_USER_ID=<userid>
 TWITTER_SCREEN_NAME=<username>
 TWITTER_OAUTH_ACCESS_TOKEN_KEY=<seekrit>
 TWITTER_OAUTH_ACCESS_TOKEN_SECRET=<seekrit>
 TWITTER_WINDOW="1-month" # optional
 TWITTER_LIST=cycle # optional

One way to get these twitter API tokens is is to install twitter-list-manager as a global NPM module and run tw auth.

Setup a twitter list

You'll also need to setup a list on Twitter for the use of the script. The expected default is 'cycle'.

Setup a Google Cloud Platform project

Finally

serverless deploy