Rewritten to be a plugin for err bot ( https://github.com/gbin/err ). Inital commit