1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 16:30:59 -04:00

untested but hopefully it works

This commit is contained in:
AnxietyisReal 2023-01-08 16:12:54 +11:00
parent 5685a8a7f8
commit b45b8ee901

View File

@ -93,6 +93,7 @@ setInterval(async()=>{
if (typeof results[1] == 'string'){ if (typeof results[1] == 'string'){
FScsg.fetchResult = `dag mp csg fail, ${results[1]}`; FScsg.fetchResult = `dag mp csg fail, ${results[1]}`;
} else if (results[1].status != 200){ } else if (results[1].status != 200){
if (results[1].status == 204){embed.setImage('https://http.cat/204')}
FScsg.fetchResult = `dag mp csg fail with ${results[1].status + ' ' + results[1].statusText}`; FScsg.fetchResult = `dag mp csg fail with ${results[1].status + ' ' + results[1].statusText}`;
} else { } else {
FScsg.data = client.xjs.xml2js(results[1].data,{compact:true,spaces:2}).careerSavegame as FSCareerSavegame; FScsg.data = client.xjs.xml2js(results[1].data,{compact:true,spaces:2}).careerSavegame as FSCareerSavegame;