diff --git a/README - OCM Event.pdf b/README - OCM Event.pdf index 7a5d3b8..13856b2 100644 Binary files a/README - OCM Event.pdf and b/README - OCM Event.pdf differ diff --git a/src/modules/ghost_ocm.ts b/src/modules/ghost_ocm.ts index 2304eae..ba885c3 100644 --- a/src/modules/ghost_ocm.ts +++ b/src/modules/ghost_ocm.ts @@ -103,15 +103,17 @@ export default class GhostModule extends Module { competitionPeriodStartTimestamp = competitionPeriodEndTimeStamp + ocmEventDate.lengthOfInterval; } - if(ocmEventDate.lengthOfInterval !== 0) + // Check the gap between quali close and main draw start timestamp + let checkQualiMainGap = ocmEventDate.competitionStartAt - ocmEventDate.qualifyingPeriodCloseAt; + if(checkQualiMainGap < 3600) { - let qualifyingEndTimeStamp = ocmEventDate.qualifyingPeriodCloseAt - ocmEventDate.lengthOfInterval + let changeTime = ocmEventDate.competitionStartAt - 3600; await prisma.oCMEvent.update({ where:{ dbId: ocmEventDate.dbId }, data:{ - qualifyingPeriodCloseAt: qualifyingEndTimeStamp + qualifyingPeriodCloseAt: changeTime } }) } @@ -574,7 +576,7 @@ export default class GhostModule extends Module { windowSticker: true, windowStickerString: 'BAYSHORE', windowStickerFont: 0, - title: 'You don\'t have S660? LMAO', + title: 'Don\'t have S660?', level: 65, // SSSSS lastPlayedAt: checkGhostTrail!.playedAt, country: 'GLB' diff --git a/start.bat b/start.bat index 5b15038..0d6f8f6 100644 --- a/start.bat +++ b/start.bat @@ -1,2 +1,2 @@ -yarn dev +node dist pause \ No newline at end of file