From 18de791ce21fa26028a9e4d3cedc67242be45200 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 3 Sep 2023 19:04:20 +1000 Subject: [PATCH] Fix CSG failing after bot restart --- src/funcs/MPModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funcs/MPModule.ts b/src/funcs/MPModule.ts index 0dc73df..669999d 100644 --- a/src/funcs/MPModule.ts +++ b/src/funcs/MPModule.ts @@ -25,7 +25,7 @@ export default async(client:TClient, Channel:string, Message:string, Server:TSer if (!hitDSS ?? !hitCSG){ if (hitDSS && !hitDSS.slots) return console.log(LogPrefix('MPModule'), `DSS failed with unknown slots table for ${client.MPServerCache[ServerName].name}`); - if (hitDSS && !hitCSG.slotSystem) return msg.edit({content: 'No savegame found or autosave has ran.', embeds: [genericEmbed.setColor(client.config.embedColorOrange).setImage(noContentImage)]}); + if (hitDSS && !hitCSG) return msg.edit({content: 'No savegame found or autosave has ran.', embeds: [genericEmbed.setColor(client.config.embedColorOrange).setImage(noContentImage)]}); else return msg.edit({embeds: [serverErrorEmbed]}); }