From b45b8ee9017a0502adeb9855e6723f165dac4410 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 8 Jan 2023 16:12:54 +1100 Subject: [PATCH] untested but hopefully it works --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index a242b9b..3ffc000 100644 --- a/src/index.ts +++ b/src/index.ts @@ -93,6 +93,7 @@ setInterval(async()=>{ if (typeof results[1] == 'string'){ FScsg.fetchResult = `dag mp csg fail, ${results[1]}`; } 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}`; } else { FScsg.data = client.xjs.xml2js(results[1].data,{compact:true,spaces:2}).careerSavegame as FSCareerSavegame;