add alot of stuff :3

This commit is contained in:
Ashley 2023-11-18 09:19:29 +00:00
parent 4f77b145ea
commit a4ff42f7b2

View file

@ -29,11 +29,14 @@ function getJson(str) {
const pkg = require("../../../package.json");
const cnf = require("../../../config.json");
const ver = "v23.1311-aMy-MAJOR-stable-nonLTS-git-MTY5OTg5NDg3Mw==";
const branch = "dev";
const codename = "amy";
const versionnumber = "270";
const relaseunixdate = "MTY5OTg5NDg3Mw==";
const verfull = "v23.1311-JeSsIcA-MAJOR-stable-dev-nonLTS-git-MTcwMDI5ODc4OQ==";
const versmol = "v23.1311-JeSsIcA"
const branch = "dev/master";
const codename = "jessica";
const versionnumber = "272";
const relaseunixdate = "MTcwMDI5ODc4OQ==
const updatequote = "Empty your cup so that it may be filled; become devoid to gain totality. - Bruce Lee"
module.exports = function (app, config, renderTemplate) {
app.get("/embed/:v", async function (req, res) {
@ -42,12 +45,14 @@ module.exports = function (app, config, renderTemplate) {
app.get("/admin", async function (req, res) {
if(req.hostname === "poketube.fun") {
res.redirect("https://console.sudovanilla.com/?from=pt_admin")
res.redirect("https://console.sudovanilla.com/")
} else {
res.redirect("/sex")
}
});
app.get("/vi/:v/:t", async function (req, res) {
var url = `https://vid.theedgeofrage.com/vi/${req.params.v}/${req.params.t}`
var url = `https://inv.vern.cc/vi/${req.params.v}/${req.params.t}`
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -58,7 +63,7 @@ module.exports = function (app, config, renderTemplate) {
});
app.get("/avatars/:v", async function (req, res) {
var url = `https://vid.theedgeofrage.com/ggpht/${req.params.v}`;
var url = `https://inv.vern.cc/ggpht/${req.params.v}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -68,7 +73,7 @@ app.get("/avatars/:v", async function (req, res) {
});
app.get("/avatars/ytc/:v", async function (req, res) {
var url = `https://vid.theedgeofrage.com/ggpht/ytc/${req.params.v.replace("ytc", "")}`;
var url = `https://inv.vern.cc/ggpht/ytc/${req.params.v.replace("ytc", "")}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -156,8 +161,10 @@ app.get("/avatars/:v", async function (req, res) {
.then((txt) => getJson(txt));
const response = {
pt_version: ver,
pt_version: versmol,
pt_version_full: verfull,
branch,
updatequote,
relaseunixdate,
vernum: versionnumber,
codename,