diff --git a/apps/discord-bot/src/commands/ratios/ratios.command.tsx b/apps/discord-bot/src/commands/ratios/ratios.command.tsx index 43bb2a4fb..a097d62d6 100644 --- a/apps/discord-bot/src/commands/ratios/ratios.command.tsx +++ b/apps/discord-bot/src/commands/ratios/ratios.command.tsx @@ -20,6 +20,7 @@ import { MEGAWALLS_MODES, MURDER_MYSTERY_MODES, PAINTBALL_MODES, + PIT_MODES, Player, PlayerStats, QUAKE_MODES, @@ -128,6 +129,11 @@ export class RatiosCommand { return this.run(context, PAINTBALL_MODES); } + @SubCommand({ description: (t) => t("commands.ratios-pit"), args }) + public pit(context: CommandContext) { + return this.run(context, PIT_MODES); + } + @SubCommand({ description: (t) => t("commands.ratios-quake"), args, group: "classic" }) public quake(context: CommandContext) { return this.run(context, QUAKE_MODES); diff --git a/apps/discord-bot/src/commands/ratios/ratios.profile.tsx b/apps/discord-bot/src/commands/ratios/ratios.profile.tsx index a66ddb67f..101ff6aa1 100644 --- a/apps/discord-bot/src/commands/ratios/ratios.profile.tsx +++ b/apps/discord-bot/src/commands/ratios/ratios.profile.tsx @@ -92,9 +92,7 @@ export type RatioWithStats = [ export interface RatiosProfileProps extends Omit { mode: GameMode; - ratios: RatioWithStats[]; - gameName: FormattedGame; } diff --git a/apps/discord-bot/src/constants.ts b/apps/discord-bot/src/constants.ts index 06c5a181e..8bfaafcf6 100644 --- a/apps/discord-bot/src/constants.ts +++ b/apps/discord-bot/src/constants.ts @@ -418,6 +418,7 @@ export const MODES_TO_API = new Map, keyof Playe [MEGAWALLS_MODES, "megawalls"], [MURDER_MYSTERY_MODES, "murdermystery"], [PAINTBALL_MODES, "paintball"], + [PIT_MODES, "pit"], [PARKOUR_MODES, "parkour"], [QUAKE_MODES, "quake"], [SKYWARS_MODES, "skywars"], @@ -445,6 +446,7 @@ export const MODES_TO_FORMATTED = new Map, Forma [MEGAWALLS_MODES, FormattedGame.MEGAWALLS], [MURDER_MYSTERY_MODES, FormattedGame.MURDER_MYSTERY], [PAINTBALL_MODES, FormattedGame.PAINTBALL], + [PIT_MODES, FormattedGame.PIT], [PARKOUR_MODES, FormattedGame.PARKOUR], [QUAKE_MODES, FormattedGame.QUAKE], [SKYWARS_MODES, FormattedGame.SKYWARS], diff --git a/locales/en-US/default.json b/locales/en-US/default.json index 8a3e90281..1d03d75b7 100644 --- a/locales/en-US/default.json +++ b/locales/en-US/default.json @@ -192,6 +192,7 @@ "ratios-megawalls": "$t(commands.ratios-command, { \"name\": \"MegaWalls\" })", "ratios-murdermystery": "$t(commands.ratios-command, { \"name\": \"Murder Mystery\" })", "ratios-paintball": "$t(commands.ratios-command, { \"name\": \"Paintball\" })", + "ratios-pit": "$t(commands.ratios-command, { \"name\": \"Pit\" })", "ratios-quake": "$t(commands.ratios-command, { \"name\": \"Quake\" })", "ratios-skywars": "$t(commands.ratios-command, { \"name\": \"SkyWars\" })", "ratios-smashheroes": "$t(commands.ratios-command, { \"name\": \"Smash Heroes\" })", diff --git a/packages/schemas/src/player/gamemodes/pit/index.ts b/packages/schemas/src/player/gamemodes/pit/index.ts index 3aa7ac08e..40ac91f9f 100644 --- a/packages/schemas/src/player/gamemodes/pit/index.ts +++ b/packages/schemas/src/player/gamemodes/pit/index.ts @@ -19,7 +19,10 @@ import { getPrestigeReq, } from "./util.js"; -export const PIT_MODES = new GameModes([{ api: "overall", hypixel: "PIT", formatted: "Pit" }] as const); +export const PIT_MODES = new GameModes([ + { api: "overall" }, + { hypixel: "PIT", formatted: "Pit" }, +] as const); export type PitModes = ExtractGameModes;