Skip to content

dariusk/sorting-bot

Repository files navigation

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.

About

The Sorting Hat Bot (@SortingBot on Twitter)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published