The Sorting Hat Bot (@SortingBot on Twitter)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore first Apr 13, 2015
Gruntfile.js first Apr 13, 2015
LICENSE-MIT first Apr 13, 2015
README.md first Apr 13, 2015
animals.js first Apr 13, 2015
bodyParts.js first Apr 13, 2015
config.js first Apr 13, 2015
index.js remove extra function Apr 13, 2015
package.json first Apr 13, 2015
watcher.js first Apr 13, 2015

README.md

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.