this is a small daemon I rigged up to collect data from reddit's /r/thebutton social experiment. to run it, you will need:
- redis running on localhost
- to
npm install needle redis moment ws
it should collect data like this:
- it will make a redis hash called
clicks
with participant number (with comma) as key and seconds left as value - it will make a redis key called
record
with the lowest recorded amount of seconds left as value - it will publish every click on
thebutton.clicks
and every tick onthebutton.ticks