mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +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",
|
"cleandist",
|
||||||
"customperiod",
|
"customperiod",
|
||||||
"Everytime",
|
"Everytime",
|
||||||
|
"fullstats",
|
||||||
"fuzzysort",
|
"fuzzysort",
|
||||||
"kranvagn",
|
"kranvagn",
|
||||||
"outfile",
|
"outfile",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand.j
|
|||||||
import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js';
|
import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js';
|
||||||
import { CommandRegistry } from '../events/interactionCreate/index.js';
|
import { CommandRegistry } from '../events/interactionCreate/index.js';
|
||||||
import evolution from '../renderers/evolution.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';
|
import { AccountInfo } from '../types/accountInfo.js';
|
||||||
|
|
||||||
export const evolutionCommand: CommandRegistry = {
|
export const evolutionCommand: CommandRegistry = {
|
||||||
|
|||||||
@@ -14,17 +14,17 @@ import resolvePlayerFromButton from '../core/discord/resolvePlayerFromButton.js'
|
|||||||
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand.js';
|
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand.js';
|
||||||
import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js';
|
import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js';
|
||||||
import { CommandRegistry } from '../events/interactionCreate/index.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';
|
import { AccountInfo } from '../types/accountInfo.js';
|
||||||
|
|
||||||
export const statsFullCommand: CommandRegistry = {
|
export const fullStatsCommand: CommandRegistry = {
|
||||||
inProduction: true,
|
inProduction: true,
|
||||||
inDevelopment: false,
|
inDevelopment: false,
|
||||||
inPublic: true,
|
inPublic: true,
|
||||||
|
|
||||||
command: addStatTypeSubCommandGroups(
|
command: addStatTypeSubCommandGroups(
|
||||||
new SlashCommandBuilder()
|
new SlashCommandBuilder()
|
||||||
.setName('statsfull')
|
.setName('fullstats')
|
||||||
.setDescription('Full in-game statistics'),
|
.setDescription('Full in-game statistics'),
|
||||||
),
|
),
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ export const statsFullCommand: CommandRegistry = {
|
|||||||
)[player.id];
|
)[player.id];
|
||||||
|
|
||||||
return [
|
return [
|
||||||
await statsfull(commandGroup, period, player, tankId),
|
await fullStats(commandGroup, period, player, tankId),
|
||||||
primaryButton(path, 'Refresh'),
|
primaryButton(path, 'Refresh'),
|
||||||
// linkButton(`${CYCLIC_API}/${path}`, 'Embed'),
|
// linkButton(`${CYCLIC_API}/${path}`, 'Embed'),
|
||||||
linkButton(
|
linkButton(
|
||||||
@@ -74,7 +74,7 @@ export const statsFullCommand: CommandRegistry = {
|
|||||||
const period = resolvePeriodFromButton(interaction);
|
const period = resolvePeriodFromButton(interaction);
|
||||||
const player = await resolvePlayerFromButton(interaction);
|
const player = await resolvePlayerFromButton(interaction);
|
||||||
|
|
||||||
return await statsfull(
|
return await fullStats(
|
||||||
commandGroup,
|
commandGroup,
|
||||||
period,
|
period,
|
||||||
player,
|
player,
|
||||||
@@ -44,7 +44,7 @@ const COMP_TANKS = [
|
|||||||
|
|
||||||
export const ownedTanksCommand: CommandRegistry = {
|
export const ownedTanksCommand: CommandRegistry = {
|
||||||
inProduction: true,
|
inProduction: true,
|
||||||
inDevelopment: true,
|
inDevelopment: false,
|
||||||
inPublic: true,
|
inPublic: true,
|
||||||
|
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import resolvePlayerFromButton from '../core/discord/resolvePlayerFromButton.js'
|
|||||||
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand.js';
|
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand.js';
|
||||||
import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js';
|
import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js';
|
||||||
import { CommandRegistry } from '../events/interactionCreate/index.js';
|
import { CommandRegistry } from '../events/interactionCreate/index.js';
|
||||||
|
import { StatType } from '../renderers/fullStats.js';
|
||||||
import stats from '../renderers/stats.js';
|
import stats from '../renderers/stats.js';
|
||||||
import { StatType } from '../renderers/statsfull.js';
|
|
||||||
import { AccountInfo } from '../types/accountInfo.js';
|
import { AccountInfo } from '../types/accountInfo.js';
|
||||||
|
|
||||||
export const statsCommand: CommandRegistry = {
|
export const statsCommand: CommandRegistry = {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { searchClansCommand } from '../../commands/searchClans.js';
|
|||||||
import { searchPlayersCommand } from '../../commands/searchPlayers.js';
|
import { searchPlayersCommand } from '../../commands/searchPlayers.js';
|
||||||
import { searchTanksCommand } from '../../commands/searchTanks.js';
|
import { searchTanksCommand } from '../../commands/searchTanks.js';
|
||||||
import { statsCommand } from '../../commands/stats.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 { todayCommand } from '../../commands/today.js';
|
||||||
import { verifyCommand } from '../../commands/verify.js';
|
import { verifyCommand } from '../../commands/verify.js';
|
||||||
import { DISCORD_TOKEN } from '../../core/node/arguments.js';
|
import { DISCORD_TOKEN } from '../../core/node/arguments.js';
|
||||||
@@ -82,7 +82,7 @@ export const commands: Record<string, CommandRegistry> = (
|
|||||||
searchClansCommand,
|
searchClansCommand,
|
||||||
searchPlayersCommand,
|
searchPlayersCommand,
|
||||||
searchTanksCommand,
|
searchTanksCommand,
|
||||||
statsFullCommand,
|
fullStatsCommand,
|
||||||
todayCommand,
|
todayCommand,
|
||||||
verifyCommand,
|
verifyCommand,
|
||||||
pingCommand,
|
pingCommand,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import { WARGAMING_APPLICATION_ID } from '../core/node/arguments.js';
|
|||||||
import { AccountInfo } from '../types/accountInfo.js';
|
import { AccountInfo } from '../types/accountInfo.js';
|
||||||
import { Histories } from '../types/histories.js';
|
import { Histories } from '../types/histories.js';
|
||||||
import { PlayerClanData } from '../types/playerClanData.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>(
|
export default async function evolution<Type extends StatType>(
|
||||||
type: Type,
|
type: Type,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import { PossiblyPromise } from '../types/possiblyPromise.js';
|
|||||||
|
|
||||||
export type StatType = 'player' | 'tank';
|
export type StatType = 'player' | 'tank';
|
||||||
|
|
||||||
export default async function statsfull<Type extends StatType>(
|
export default async function fullStats<Type extends StatType>(
|
||||||
type: Type,
|
type: Type,
|
||||||
{ start, end, statsName }: ResolvedPeriod,
|
{ start, end, statsName }: ResolvedPeriod,
|
||||||
{ server, id }: ResolvedPlayer,
|
{ server, id }: ResolvedPlayer,
|
||||||
Reference in new issue
Block a user