1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 04:10:59 -05:00

Fix CSG failing after bot restart

This commit is contained in:
AnxietyisReal 2023-09-03 19:04:20 +10:00
parent 62576aab16
commit c23765e1a3

View File

@ -25,7 +25,7 @@ export default async(client:TClient, Channel:string, Message:string, Server:TSer
if (!hitDSS ?? !hitCSG){ 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 && !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]}); else return msg.edit({embeds: [serverErrorEmbed]});
} }