From 373c6bc6851888295949f74198f16a13eb3bd669 Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Mon, 28 Aug 2023 14:22:12 +1000 Subject: [PATCH] Update MPLoop.ts --- src/funcs/MPLoop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funcs/MPLoop.ts b/src/funcs/MPLoop.ts index 91a6428..a5a51fa 100644 --- a/src/funcs/MPLoop.ts +++ b/src/funcs/MPLoop.ts @@ -19,7 +19,7 @@ export default async(client:TClient, Channel:string, Message:string, Server:TSer } const HITALL = async()=>{ - let sessionInit = {signal: AbortSignal.timeout(7500),headers:{'User-Agent':`Daggerbot - HITALL/undici`}}; + let sessionInit = {signal: AbortSignal.timeout(8200),headers:{'User-Agent':`Daggerbot - HITALL/undici`}}; try { const hitDSS = await fetch(Server.ip+'/feed/dedicated-server-stats.json?code='+Server.code, sessionInit).then(r=>r.json() as Promise); const hitCSG = await fetch(Server.ip+'/feed/dedicated-server-savegame.html?code='+Server.code+'&file=careerSavegame', sessionInit).then(async r=>(client.xjs.xml2js(await r.text(), {compact: true}) as any).careerSavegame as FSCareerSavegame);