Added auto-scrolling to chat buffer.

This commit is contained in:
rainbow napkin 2025-04-12 06:58:43 -04:00
parent 401b9e4fee
commit e46513cc1a
2 changed files with 56 additions and 1 deletions

View file

@ -98,14 +98,21 @@ if(config.protocol.toLowerCase() == "https"){
cert: fs.readFileSync(config.ssl.cert)
};
//Start HTTPS Server
webServer = https.createServer(httpsOptions, app);
}catch(err){
//If the error has a path
if(err.path != null && err.path != ""){
//Tell the user to fix their shit
console.log(`Error opening key/cert file: ${err.path}`);
//Otherwise
}else{
//Shit our pants
console.log("Unknown error occured while starting HTTPS server! Bailing out!");
console.log(err);
}
//and run for the hills
process.exit();
}