diff --git a/index.js b/index.js index 5b96c0b..5eb4fa3 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,6 @@ const express = require('express'), path = require('path'), fs = require('fs'), pageUpdater = require('./pageUpdater.js') -// ytjs = require("youtubei.js") var app = express() @@ -10,47 +9,14 @@ const PORT = process.env.PORT || 8080 const staticpath = path.join(__dirname, 'static') -// var mostRecentVideo = undefined - var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json'))) -// var thumborInstances = config.thumborInstances - -// var thumbCount = 0 - -// function getThumbor() { -// thumbCount += 1 -// return thumborInstances[thumbCount % thumborInstances.length] + "unsafe" -// } - -// async function getMostRecentVid() { -// innertube = await ytjs.Innertube.create() -// var video = await (await (await ytjs.Innertube.create()).getChannel('UChcrBJNJLZucy3TPyGyAY2g')) -// video = video.current_tab.content.contents[1].contents[0].content.items[0] - -// mostRecentVideo = video.endpoint.payload.videoId -// console.log(mostRecentVideo) -// } - -// getMostRecentVid() - app.listen(PORT, () => { console.log("Violet's Purgatory is now listening on port: " + PORT) }) var cachePath = path.join(staticpath, 'cached') -// var gamePath = path.join(__dirname, "games") var fontPath = path.join(staticpath, "fonts") -// var imgPath = path.join(staticpath, 'imgs') - -app.use("/games", function (req, res, next) { - res.setHeader("Cross-Origin-Embedder-Policy", "require-corp") - res.setHeader("Cross-Origin-Opener-Policy", "same-origin") - next() -}); - - -// app.use("/games", express.static(gamePath)) app.use("/fonts", express.static(fontPath)) diff --git a/weatherGenerator.js b/weatherGenerator.js index 76b0f72..a99dbac 100644 --- a/weatherGenerator.js +++ b/weatherGenerator.js @@ -39,7 +39,7 @@ module.exports = { ` - var amount = 12 + var amount = 10 var iterationReducer = 3