Skip to content

Commit dfdb3ef

Browse files
committed
quickly an extra phase evil
1 parent 4676b05 commit dfdb3ef

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

botfest/src/main/kotlin/net/modfest/botfest/extensions/SubmissionCommands.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ class SubmissionCommands : Extension(), KordExKoinComponent {
646646

647647
val event = platform.getEvent(curEvent)
648648

649-
if (event.phase in setOf(EventData.Phase.PLANNING, EventData.Phase.MODDING)) {
649+
if (event.phase in setOf(EventData.Phase.PLANNING, EventData.Phase.ANNOUNCED, EventData.Phase.MODDING)) {
650650
respond {
651651
content = Translations.Commands.Submission.Test.Response.early
652652
.withContext(this@action)
@@ -698,7 +698,7 @@ class SubmissionCommands : Extension(), KordExKoinComponent {
698698

699699
val event = platform.getEvent(curEvent)
700700

701-
if (event.phase in setOf(EventData.Phase.PLANNING, EventData.Phase.MODDING)) {
701+
if (event.phase in setOf(EventData.Phase.PLANNING, EventData.Phase.ANNOUNCED, EventData.Phase.MODDING)) {
702702
respond {
703703
content = Translations.Commands.Submission.Claim.Response.early
704704
.withContext(this@action)
@@ -808,7 +808,7 @@ class SubmissionCommands : Extension(), KordExKoinComponent {
808808

809809
val event = platform.getEvent(curEvent)
810810

811-
if (event.phase in setOf(EventData.Phase.PLANNING, EventData.Phase.MODDING, EventData.Phase.TESTING)) {
811+
if (event.phase in setOf(EventData.Phase.PLANNING, EventData.Phase.ANNOUNCED, EventData.Phase.MODDING, EventData.Phase.TESTING)) {
812812
respond {
813813
content = Translations.Commands.Submission.Build.Response.early
814814
.withContext(this@action)

common/src/main/java/net/modfest/platform/pojo/EventData.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public enum Type {
2424
}
2525

2626
public enum Phase {
27-
PLANNING(true, false, false),
27+
PLANNING(false, false, false),
28+
ANNOUNCED(true, false, false),
2829
MODDING(true, true, true),
2930
TESTING(false, false, true),
3031
BUILDING(false, false, true),
@@ -48,11 +49,6 @@ public boolean canRegister() {
4849
public boolean canSubmit() {
4950
return submissions;
5051
}
51-
52-
public boolean canUpdateSubmission() {
53-
// TODO: hack for bc25, needs removing
54-
return false;
55-
}
5652
}
5753

5854
public record Images(String full, String transparent, String wordmark, String background) {

panel/src/platform_types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export interface Whoami {
164164
permissions: string[];
165165
}
166166

167-
export type EventData$Phase = "planning" | "modding" | "testing" | "building" | "showcase" | "complete";
167+
export type EventData$Phase = "planning" | "announced" | "modding" | "testing" | "building" | "showcase" | "complete";
168168

169169
export type EventData$Type = "modfest" | "blanketcon";
170170

0 commit comments

Comments
 (0)