mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-16 08:27:05 -05:00
Add Monday Afterparty winners' badge
This commit is contained in:
parent
8df8ac0a48
commit
d0b860ef2c
|
|
@ -99,16 +99,33 @@ const Badges = ({
|
|||
});
|
||||
}
|
||||
|
||||
// Triton-Cup
|
||||
// Other tournaments
|
||||
|
||||
if (
|
||||
wonTournamentCount({ tournament: "TRITON", discordId: userDiscordId }) > 0
|
||||
wonTournamentCount({
|
||||
tournament: "MONDAY_AFTERPARTY",
|
||||
discordId: userDiscordId,
|
||||
}) > 0
|
||||
) {
|
||||
badges.push({
|
||||
src: "monday.gif",
|
||||
description: "Awarded for winning Monday Afterparty",
|
||||
count: wonTournamentCount({
|
||||
tournament: "MONDAY_AFTERPARTY",
|
||||
discordId: userDiscordId,
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
if (
|
||||
wonTournamentCount({ tournament: "TRITON_CUP", discordId: userDiscordId }) >
|
||||
0
|
||||
) {
|
||||
badges.push({
|
||||
src: "triton.gif",
|
||||
description: "Awarded for winning Triton-Cup",
|
||||
count: wonTournamentCount({
|
||||
tournament: "TRITON",
|
||||
tournament: "TRITON_CUP",
|
||||
discordId: userDiscordId,
|
||||
}),
|
||||
});
|
||||
|
|
|
|||
BIN
public/badges/monday.gif
Normal file
BIN
public/badges/monday.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 248 KiB |
|
|
@ -345,18 +345,24 @@ export const wonITZCount = (
|
|||
const TRITON_CUP_WINNERS =
|
||||
"277760673436401664,317021572470669312,347127232839417856,149504203654430720,207150814735761408,304337232808902668,403962004739588096,381129695980290050,158163424004538369,330044344738381834,526883393485406208,340583035542175744,105390854063034368,151192098962407424,109804061900992512,115572122482507782,377510502139691018,265816182374924298,323496682920738817,182892865695907840";
|
||||
|
||||
const MONDAY_AFTERPARTY_WINNERS =
|
||||
"189021480527331328,397097842411569152,274245305363464192,245195310593212417,427319047785545759,186543007850299393,125301875863060480,328641373655924739,274245305363464192,143918846535925761,147036636608331779,260602342309756940,105390854063034368,189125119937871872,516036546370207764,164734950686326784,133616977968103424,323496682920738817,353199183345352704,207150814735761408,273503438124613632,381129695980290050,344096615033995266,265816182374924298,427221050330316814,724313854536056862,161173517163954176,441232639358402560,108951379095072768,160778600834924544,377510502139691018,338470854339854346,182892865695907840,331170488602591242,310359084387794946,331170488602591242,164734950686326784,133616977968103424,353199183345352704,323496682920738817,675752882682724352,403598012888252426,250689440056475648,410342922253500416,164748705713356800,619566583970529314,448493571419537428,250689440056475648,784695580920119297,393411373289177098,350225756082798593,274693882221166597,436528474807730176,108951379095072768,441232639358402560,477555922026102818,412203683024076800,92909500100513792,99931397451419648,81154649993785344,439066642920505344";
|
||||
|
||||
export const wonTournamentCount = ({
|
||||
tournament,
|
||||
discordId,
|
||||
}: {
|
||||
tournament: "TRITON";
|
||||
tournament: "TRITON_CUP" | "MONDAY_AFTERPARTY";
|
||||
discordId: string;
|
||||
}) => {
|
||||
let winnersString = "";
|
||||
switch (tournament) {
|
||||
case "TRITON":
|
||||
case "TRITON_CUP":
|
||||
winnersString = TRITON_CUP_WINNERS;
|
||||
break;
|
||||
case "MONDAY_AFTERPARTY":
|
||||
winnersString = MONDAY_AFTERPARTY_WINNERS;
|
||||
break;
|
||||
default:
|
||||
console.error(`Invalid tournament: ${tournament}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user