diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-11-24 09:20:52 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-11-24 09:20:52 -0500 |
| commit | 73f61722b2320f5df619a9b0db078d71b834fcec (patch) | |
| tree | 9340307a34df4247f153115a342377b7bd7c0cf3 /app.js | |
| parent | f18f4c5daa08a139555be0a780d20e00413d4b32 (diff) | |
| download | Project-NewTube-73f61722b2320f5df619a9b0db078d71b834fcec.tar.gz Project-NewTube-73f61722b2320f5df619a9b0db078d71b834fcec.tar.bz2 Project-NewTube-73f61722b2320f5df619a9b0db078d71b834fcec.zip | |
Got rid of the ALP stuff
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -22,13 +22,12 @@ const app = express(); const moment = require('moment'); const readline = require("readline"); const path = require("path"); -const config = require("./config.json"); -const webhook = require("webhook-discord"); +//const config = require("./config.json"); const mongoose = require('mongoose'); const passport = require('passport'); const flash = require('connect-flash'); const session = require('express-session'); -const Hook = new webhook.Webhook(config.durl); +//const Hook = new webhook.Webhook(config.durl); const port = 4000; @@ -65,7 +64,7 @@ rl.on("line", (input) => { case "exit": async function exitWebsite() { console.log("[i] Closing website..."); - await Hook.info("Alee Productions Website", "Website is shutting down..."); + //await Hook.info("Alee Productions Website", "Website is shutting down..."); process.exit(0); } exitWebsite(); @@ -90,10 +89,6 @@ app.use(logger); // Routes app.use("/", require("./routes/index")); -app.use("/projects", require("./routes/projects")); -app.use("/blog", require("./routes/blog")); -app.use("/about", require("./routes/about")); -app.use("/community/rules", require("./routes/community-rules")); app.use((req, res) => { res.status(404).render("404", { @@ -102,6 +97,6 @@ app.use((req, res) => { }); app.listen(port, () => { - Hook.success("Alee Productions Website","Website has been loaded!"); + //Hook.success("Alee Productions Website","Website has been loaded!"); console.log(`[>] Website listening on port ${port}!`); });
\ No newline at end of file |
