Reduce rain, remove comments
This commit is contained in:
parent
8db8c95df1
commit
c23e8fef0a
2 changed files with 1 additions and 35 deletions
34
index.js
34
index.js
|
@ -2,7 +2,6 @@ const express = require('express'),
|
||||||
path = require('path'),
|
path = require('path'),
|
||||||
fs = require('fs'),
|
fs = require('fs'),
|
||||||
pageUpdater = require('./pageUpdater.js')
|
pageUpdater = require('./pageUpdater.js')
|
||||||
// ytjs = require("youtubei.js")
|
|
||||||
|
|
||||||
var app = express()
|
var app = express()
|
||||||
|
|
||||||
|
@ -10,47 +9,14 @@ const PORT = process.env.PORT || 8080
|
||||||
|
|
||||||
const staticpath = path.join(__dirname, 'static')
|
const staticpath = path.join(__dirname, 'static')
|
||||||
|
|
||||||
// var mostRecentVideo = undefined
|
|
||||||
|
|
||||||
var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json')))
|
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, () => {
|
app.listen(PORT, () => {
|
||||||
console.log("Violet's Purgatory is now listening on port: " + PORT)
|
console.log("Violet's Purgatory is now listening on port: " + PORT)
|
||||||
})
|
})
|
||||||
|
|
||||||
var cachePath = path.join(staticpath, 'cached')
|
var cachePath = path.join(staticpath, 'cached')
|
||||||
// var gamePath = path.join(__dirname, "games")
|
|
||||||
var fontPath = path.join(staticpath, "fonts")
|
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))
|
app.use("/fonts", express.static(fontPath))
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ module.exports = {
|
||||||
</style>
|
</style>
|
||||||
`
|
`
|
||||||
|
|
||||||
var amount = 12
|
var amount = 10
|
||||||
|
|
||||||
var iterationReducer = 3
|
var iterationReducer = 3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue