1 var forever = require("forever-monitor")
4 var child = new(forever.Monitor)("./lib/start.js", {
11 var writeTimes = function() {
12 fs.writeFile("times", String(child.times), function(err) {
21 child.on("exit", function() {
22 console.log("$~~~$ CytubeBot has exited after 20 restarts or there was a problem\n")
23 console.log("$~~~$ Shutting down")
27 child.on("restart", function() {
28 console.log("$~~~$ CytubeBot is restarting after a close\n")