The source code to @SortingBot.
For a partial explanation of this code, see this blog post.
This consists of two programs:
-
watcher.js
- This is watching for new follows and adding them to thequeue
list in a Redis DB. Runs persistently (run on boot and use forever or similar as a wrapper). -
index.js
- This runs once a minute and pops the queue, generating a poem for the next person in line.
You need to be running a redis database for the bot to work.
Copyright (c) 2015 Kazemi, Darius Licensed under the MIT license.