Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 693 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 693 Bytes

sorting-hat (Sorting Hat)

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 the queue 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.

License

Copyright (c) 2015 Kazemi, Darius Licensed under the MIT license.