mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-28 14:18:04 -05:00
Add Lobster Crossfire winners' badge
This commit is contained in:
@@ -101,6 +101,22 @@ const usersBadges = ({
|
||||
|
||||
// Other tournaments
|
||||
|
||||
if (
|
||||
wonTournamentCount({
|
||||
tournament: "LOBSTER_CROSSFIRE",
|
||||
discordId: userDiscordId,
|
||||
}) > 0
|
||||
) {
|
||||
result.push({
|
||||
src: "lobster.gif",
|
||||
description: "Awarded for winning Lobster Crossfire",
|
||||
count: wonTournamentCount({
|
||||
tournament: "LOBSTER_CROSSFIRE",
|
||||
discordId: userDiscordId,
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
if (
|
||||
wonTournamentCount({
|
||||
tournament: "MONDAY_AFTERPARTY",
|
||||
|
||||
BIN
public/badges/lobster.gif
Normal file
BIN
public/badges/lobster.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 327 KiB |
@@ -348,11 +348,14 @@ const TRITON_CUP_WINNERS =
|
||||
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";
|
||||
|
||||
const LOBSTER_CROSSFIRE =
|
||||
"105390854063034368,109804061900992512,151192098962407424,260602342309756940";
|
||||
|
||||
export const wonTournamentCount = ({
|
||||
tournament,
|
||||
discordId,
|
||||
}: {
|
||||
tournament: "TRITON_CUP" | "MONDAY_AFTERPARTY";
|
||||
tournament: "TRITON_CUP" | "MONDAY_AFTERPARTY" | "LOBSTER_CROSSFIRE";
|
||||
discordId: string;
|
||||
}) => {
|
||||
let winnersString = "";
|
||||
@@ -363,6 +366,9 @@ export const wonTournamentCount = ({
|
||||
case "MONDAY_AFTERPARTY":
|
||||
winnersString = MONDAY_AFTERPARTY_WINNERS;
|
||||
break;
|
||||
case "LOBSTER_CROSSFIRE":
|
||||
winnersString = LOBSTER_CROSSFIRE;
|
||||
break;
|
||||
default:
|
||||
console.error(`Invalid tournament: ${tournament}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user