From f64e72c312db80241fff07f89d8c2f723de76b93 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Sun, 9 Jul 2023 01:02:30 +0000 Subject: [PATCH] feat: renamed statsfull to fullstats --- .vscode/settings.json | 1 + src/commands/evolution.tsx | 2 +- src/commands/{statsFull.tsx => fullStats.tsx} | 10 +++++----- src/commands/ownedTanks.tsx | 2 +- src/commands/stats.tsx | 2 +- src/events/interactionCreate/index.ts | 4 ++-- src/renderers/evolution.tsx | 2 +- src/renderers/{statsfull.tsx => fullStats.tsx} | 2 +- 8 files changed, 13 insertions(+), 12 deletions(-) rename src/commands/{statsFull.tsx => fullStats.tsx} (92%) rename src/renderers/{statsfull.tsx => fullStats.tsx} (98%) diff --git a/.vscode/settings.json b/.vscode/settings.json index 86108f64d..847ba49b0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,7 @@ "cleandist", "customperiod", "Everytime", + "fullstats", "fuzzysort", "kranvagn", "outfile", diff --git a/src/commands/evolution.tsx b/src/commands/evolution.tsx index e9f2253f2..d2b7d59d1 100644 --- a/src/commands/evolution.tsx +++ b/src/commands/evolution.tsx @@ -15,7 +15,7 @@ import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand.j import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js'; import { CommandRegistry } from '../events/interactionCreate/index.js'; import evolution from '../renderers/evolution.js'; -import { StatType } from '../renderers/statsfull.js'; +import { StatType } from '../renderers/fullStats.js'; import { AccountInfo } from '../types/accountInfo.js'; export const evolutionCommand: CommandRegistry = { diff --git a/src/commands/statsFull.tsx b/src/commands/fullStats.tsx similarity index 92% rename from src/commands/statsFull.tsx rename to src/commands/fullStats.tsx index 397218604..4b158a124 100644 --- a/src/commands/statsFull.tsx +++ b/src/commands/fullStats.tsx @@ -14,17 +14,17 @@ import resolvePlayerFromButton from '../core/discord/resolvePlayerFromButton.js' import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand.js'; import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js'; import { CommandRegistry } from '../events/interactionCreate/index.js'; -import statsfull, { StatType } from '../renderers/statsfull.js'; +import fullStats, { StatType } from '../renderers/fullStats.js'; import { AccountInfo } from '../types/accountInfo.js'; -export const statsFullCommand: CommandRegistry = { +export const fullStatsCommand: CommandRegistry = { inProduction: true, inDevelopment: false, inPublic: true, command: addStatTypeSubCommandGroups( new SlashCommandBuilder() - .setName('statsfull') + .setName('fullstats') .setDescription('Full in-game statistics'), ), @@ -52,7 +52,7 @@ export const statsFullCommand: CommandRegistry = { )[player.id]; return [ - await statsfull(commandGroup, period, player, tankId), + await fullStats(commandGroup, period, player, tankId), primaryButton(path, 'Refresh'), // linkButton(`${CYCLIC_API}/${path}`, 'Embed'), linkButton( @@ -74,7 +74,7 @@ export const statsFullCommand: CommandRegistry = { const period = resolvePeriodFromButton(interaction); const player = await resolvePlayerFromButton(interaction); - return await statsfull( + return await fullStats( commandGroup, period, player, diff --git a/src/commands/ownedTanks.tsx b/src/commands/ownedTanks.tsx index c0f0fe2c2..75dd86f5b 100644 --- a/src/commands/ownedTanks.tsx +++ b/src/commands/ownedTanks.tsx @@ -44,7 +44,7 @@ const COMP_TANKS = [ export const ownedTanksCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/stats.tsx b/src/commands/stats.tsx index 7860be991..0ae09fd0e 100644 --- a/src/commands/stats.tsx +++ b/src/commands/stats.tsx @@ -14,8 +14,8 @@ import resolvePlayerFromButton from '../core/discord/resolvePlayerFromButton.js' import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand.js'; import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js'; import { CommandRegistry } from '../events/interactionCreate/index.js'; +import { StatType } from '../renderers/fullStats.js'; import stats from '../renderers/stats.js'; -import { StatType } from '../renderers/statsfull.js'; import { AccountInfo } from '../types/accountInfo.js'; export const statsCommand: CommandRegistry = { diff --git a/src/events/interactionCreate/index.ts b/src/events/interactionCreate/index.ts index 49b3ec1e7..3a5ee2cf2 100644 --- a/src/events/interactionCreate/index.ts +++ b/src/events/interactionCreate/index.ts @@ -26,7 +26,7 @@ import { searchClansCommand } from '../../commands/searchClans.js'; import { searchPlayersCommand } from '../../commands/searchPlayers.js'; import { searchTanksCommand } from '../../commands/searchTanks.js'; import { statsCommand } from '../../commands/stats.js'; -import { statsFullCommand } from '../../commands/statsFull.js'; +import { fullStatsCommand } from '../../commands/fullStats.js'; import { todayCommand } from '../../commands/today.js'; import { verifyCommand } from '../../commands/verify.js'; import { DISCORD_TOKEN } from '../../core/node/arguments.js'; @@ -82,7 +82,7 @@ export const commands: Record = ( searchClansCommand, searchPlayersCommand, searchTanksCommand, - statsFullCommand, + fullStatsCommand, todayCommand, verifyCommand, pingCommand, diff --git a/src/renderers/evolution.tsx b/src/renderers/evolution.tsx index 26dec06bd..2e3cafdc5 100644 --- a/src/renderers/evolution.tsx +++ b/src/renderers/evolution.tsx @@ -15,7 +15,7 @@ import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js'; import { AccountInfo } from '../types/accountInfo.js'; import { Histories } from '../types/histories.js'; import { PlayerClanData } from '../types/playerClanData.js'; -import { StatType } from './statsfull.js'; +import { StatType } from './fullStats.js'; export default async function evolution( type: Type, diff --git a/src/renderers/statsfull.tsx b/src/renderers/fullStats.tsx similarity index 98% rename from src/renderers/statsfull.tsx rename to src/renderers/fullStats.tsx index cf2180786..9c40c557e 100644 --- a/src/renderers/statsfull.tsx +++ b/src/renderers/fullStats.tsx @@ -25,7 +25,7 @@ import { PossiblyPromise } from '../types/possiblyPromise.js'; export type StatType = 'player' | 'tank'; -export default async function statsfull( +export default async function fullStats( type: Type, { start, end, statsName }: ResolvedPeriod, { server, id }: ResolvedPlayer,