From 0509bc21027b827097b378b57784224ba2814a09 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 24 Aug 2024 13:43:16 -0500 Subject: [PATCH] debugging --- index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7a79002..9a2ac47 100755 --- a/index.js +++ b/index.js @@ -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/")){