Skip to content

Added warnings of previous trial timings#1

Open
Th3F4nd1t wants to merge 2 commits intoOpenRedstoneEngineers:mainfrom
Th3F4nd1t:main
Open

Added warnings of previous trial timings#1
Th3F4nd1t wants to merge 2 commits intoOpenRedstoneEngineers:mainfrom
Th3F4nd1t:main

Conversation

@Th3F4nd1t
Copy link
Copy Markdown

No description provided.

@Th3F4nd1t
Copy link
Copy Markdown
Author

Th3F4nd1t commented Jul 2, 2025

no i didnt

(thing no workie yet 😞)

@Th3F4nd1t
Copy link
Copy Markdown
Author

Fixed it
example new config.yml

studentGroup: "student"
testificateGroup: "testificate"
builderGroup: "builder"
webhook: "https://discord.com/api/webhooks/..."
abandonForgiveness: 6000
countPerPeriod: 2
periodDays: 7
minSpacingHours: 24

@Nickster258
Copy link
Copy Markdown
Member

no i didnt

(thing no workie yet 😞)

💀

@Th3F4nd1t
Copy link
Copy Markdown
Author

nudge

}

val mostRecent = recentTrials.firstOrNull()
if (mostRecent != null) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use something like .firstOrNull()?.let { it -> etcetcetc } to "kotlinify" this. https://kotlinlang.org/docs/scope-functions.html#let

}

// Warn of recent trials
if (!this.isTrialOkay(testificate.uniqueId)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice if this gets stated and halts the start of the trial. Could be ignored with an extra argument, like /trialstart Nickster258 https://app.link confirm or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants