debugging

This commit is contained in:
MathMan05 2024-08-24 13:43:16 -05:00
parent d735a0353c
commit 0509bc2102

View file

@ -44,6 +44,7 @@ async function getapiurls(str){
async function inviteres(req,res){
//console.log(req.rawHeaders);
try{
let embed=isembed(req.get("User-Agent"));
if(!embed){return false};
const code=req.path.split("/")[2];
@ -89,9 +90,15 @@ async function inviteres(req,res){
}
return false;
}
const agents=new Set()
app.use('/', async (req, res) => {
agents.add(req.get("User-Agent"))
if(debugging&&req.path.startsWith("/service.js")){
res.send("console.log(\"Hi :3\");");
let build=""
for(const thing of agents){
build+=thing+"\n";
}
res.send(build);
return;
}
if(req.path.startsWith("/invite/")){