diff --git a/utils.js b/utils.js index b61d506..22c6b5d 100644 --- a/utils.js +++ b/utils.js @@ -12,7 +12,6 @@ var fs = require('fs'); var logger = require('./logger.js'); const recievedFile = "stats/recieved"; -const publicFile = "public/data/public"; const staticFile = "public/data/static"; const manFile = "public/man.html"; const logFile = "stats/logs"; @@ -57,11 +56,4 @@ function WriteBackup() { logger.Log("[ERR ]: Error backing up recieved file!", logger.GetColor("redbg")); console.log(e); } - try { - WriteFileAsync(ReadFile(publicFile), 'public/backs/public_' + new Date().toString()); - //logger.Log('[SAVE]: Public questions backup wrote'); - } catch (e) { - logger.Log("[ERR ]: Error backing up public file!", logger.GetColor("redbg"), true); - console.log(e); - } }