Skip to content

Commit 6140806

Browse files
committed
Add variations to milestone message
1 parent 806e20c commit 6140806

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/scheduled/milestone.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ const milestoneScheduled = async (
5454
const content = [
5555
`# ${emojiRegular(env, "hype")} ${money("£", recentMilestone, false)}`,
5656
"",
57-
`${emojiRegular(env, "mascot")} Jingle Jam ${stats.event.year} just hit a new milestone, with ${totalRaised} raised so far through the Yogscast and fundraisers.`,
58-
`:black_small_square: There have already been ${collections} Games Collections claimed, and our ${countFundraisers} fundraisers have raised ${totalFundraisers}!`,
57+
Math.random() < 0.5
58+
? `${emojiRegular(env, "mascot")} Jingle Jam ${stats.event.year} just hit a new milestone, with ${totalRaised} raised so far through the Yogscast and fundraisers.`
59+
: `${emojiRegular(env, "mascot")} A new milestone has been reached! Jingle Jam ${stats.event.year} has raised ${totalRaised} so far through the Yogscast and fundraisers.`,
60+
Math.random() < 0.5
61+
? `:black_small_square: There have already been ${collections} Games Collections claimed, and our ${countFundraisers} fundraisers have raised ${totalFundraisers}!`
62+
: `:black_small_square: ${collections} Games Collections have already been claimed, and our ${countFundraisers} fundraisers have raised ${totalFundraisers}!`,
5963
"",
6064
thanks(new Date(stats.event.end), stats.event.year, env),
6165
].join("\n");

0 commit comments

Comments
 (0)