mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: renamed statsfull to fullstats
This commit is contained in:
1 parent
ce6715cf2c
commit
f64e72c312
8 files changed
+13
-12
No files matched your search
Vendored
+1
@@ -7,6 +7,7 @@
|
||||
"cleandist",
|
||||
"customperiod",
|
||||
"Everytime",
|
||||
"fullstats",
|
||||
"fuzzysort",
|
||||
"kranvagn",
|
||||
"outfile",
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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,
|
||||
@@ -44,7 +44,7 @@ const COMP_TANKS = [
|
||||
|
||||
export const ownedTanksCommand: CommandRegistry = {
|
||||
inProduction: true,
|
||||
inDevelopment: true,
|
||||
inDevelopment: false,
|
||||
inPublic: true,
|
||||
|
||||
command: new SlashCommandBuilder()
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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<string, CommandRegistry> = (
|
||||
searchClansCommand,
|
||||
searchPlayersCommand,
|
||||
searchTanksCommand,
|
||||
statsFullCommand,
|
||||
fullStatsCommand,
|
||||
todayCommand,
|
||||
verifyCommand,
|
||||
pingCommand,
|
||||
|
||||
@@ -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 extends StatType>(
|
||||
type: Type,
|
||||
|
||||
@@ -25,7 +25,7 @@ import { PossiblyPromise } from '../types/possiblyPromise.js';
|
||||
|
||||
export type StatType = 'player' | 'tank';
|
||||
|
||||
export default async function statsfull<Type extends StatType>(
|
||||
export default async function fullStats<Type extends StatType>(
|
||||
type: Type,
|
||||
{ start, end, statsName }: ResolvedPeriod,
|
||||
{ server, id }: ResolvedPlayer,
|
||||
Reference in new issue
Block a user