From 8cc7776f0923c9093b1ed4d16ca494a8a45f4db7 Mon Sep 17 00:00:00 2001 From: YourFriendlyNeighborhoodDealer Date: Sun, 24 Feb 2019 10:50:38 +0100 Subject: [PATCH] Removed old motd handling --- actions.js | 3 --- public/qa | 8 -------- server.js | 5 ++--- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 public/qa diff --git a/actions.js b/actions.js index 926e875..aba8055 100755 --- a/actions.js +++ b/actions.js @@ -30,7 +30,6 @@ var recievedFile = "stats/recieved"; var staticFile = "public/data/static"; var manFile = "public/man.html"; var dataFile = "public/data.json"; -var motdFile = "public/motd"; var versionFile = "public/currVersion"; const qaFile = "public/qa"; @@ -281,9 +280,7 @@ function ProcessIncomingRequest(data) { data.AddQuestion(d.subj, q); } - var motd = utils.ReadFile(motdFile); var version = utils.ReadFile(versionFile); - data.motd = motd; data.version = version; logger.Log("[PCES]:\t" + d.subj); var msg = "All / new count: " + allQuestions.length + " / " + questions.length; diff --git a/public/qa b/public/qa deleted file mode 100644 index 1861383..0000000 --- a/public/qa +++ /dev/null @@ -1,8 +0,0 @@ -How does this work? - -first line is always answer. -every new line is displayed as new line -# -Is this a new question? -yes. -dont put # after the last qa! diff --git a/server.js b/server.js index 95043cd..baf297c 100755 --- a/server.js +++ b/server.js @@ -36,7 +36,6 @@ const stat = require('./stat.js'); const recivedFiles = "public/recivedfiles"; const uloadFiles = "public/f"; -const motdFile = "public/motd"; const staticFile = "public/data/static"; const dataFile = "public/data.json"; const countFile = "public/data/count"; @@ -121,14 +120,14 @@ app.get('/manual', function(req, res) { }); app.get('/public', function(req, res) { - var response = '@' + utils.ReadFile(motdFile); + var response = '@Plz update :)'; response += utils.ReadFile(staticFile); res.write(response); res.end(); }); app.get('/static', function(req, res) { - var response = '@' + utils.ReadFile(motdFile); + var response = '@Plz update :)'; response += utils.ReadFile(staticFile); res.write(response); res.end();