shits broken

This commit is contained in:
lolcat 2024-11-03 01:49:02 -04:00
parent 5b403e9c3b
commit b0d5953164
1 changed files with 3 additions and 9 deletions

View File

@ -405,7 +405,7 @@ async function handshake(name, password){
} }
}); });
ws.on("error", function(code, reason)){ ws.on("error", function(code, reason){
deek.emit("error", "code=" + code + " reason=" + reason); deek.emit("error", "code=" + code + " reason=" + reason);
}); });
@ -1114,20 +1114,14 @@ deek.on("close", function(channel){
console.log("It's over. Disconnected from websocket. Attempting reconnection in 10 seconds"); console.log("It's over. Disconnected from websocket. Attempting reconnection in 10 seconds");
setTimeout(function(){
fs.utimesSync(__filename, Date.now(), Date.now()); fs.utimesSync(__filename, Date.now(), Date.now());
}, 10000);
}); });
deek.on("error", function(message){ deek.on("error", function(message){
console.error("Serber error: " + message + ". Attempting reconnection in 10 seconds"); console.error("Serber error: " + message + ". Attempting reconnection in 10 seconds");
setTimeout(function(){
fs.utimesSync(__filename, Date.now(), Date.now()); fs.utimesSync(__filename, Date.now(), Date.now());
}, 10000);
}); });
// connect to serber // connect to serber