Test script to check how redis expire registration works.
Run with npm run
.
#!/usr/bin/env ruby | |
begin | |
require 'oauth2' | |
rescue LoadError | |
puts "You need to install oauth2 gem, run `gem install oauth2`" | |
exit 1 | |
end | |
require 'uri' | |
require 'net/http' |
# Add to hubot's scripts/ when developing hubot scripts in flowdock | |
# to enable easy debugging when errors happen. Posts all errors with stack | |
# traces to first flow it knows about. | |
module.exports = (robot) -> | |
if process.env.NODE_ENV == 'development' | |
robot.on 'error', (error) -> | |
errorMessage = "ERROR:\n" | |
if error.stack? | |
errorMessage += error.stack |
I hereby claim:
To claim this, I am signing this object: