added interval fixes - bots die gracefully now

This commit is contained in:
Amish Shah
2015-12-06 19:02:10 +00:00
parent 4486b623f5
commit e072c58460
5 changed files with 109 additions and 65 deletions

View File

@@ -7,6 +7,11 @@ var request = require("superagent");
client.on("ready", () => {
console.log("ready");
setTimeout(() => {
client.internal.websocket.close();
}, 3000);
});
client.on("message", msg => {