Rename chart commands with chart prefix

This commit is contained in:
baz 2025-01-05 22:00:51 +00:00
parent 38481737e7
commit 9a97476e63
2 changed files with 5 additions and 5 deletions

View File

@ -2,13 +2,13 @@ const { createCanvas } = require('canvas');
const { Chart } = require('chart.js/auto');
const fs = require('fs');
const { getUserRegistration, getBeatenGames, checkGameStorageId } = require('../../databaseHelperFunctions.js');
const { getGameJson } = require('../../igdbHelperFunctions');
const { getGameJson } = require('../../igdbHelperFunctions.js');
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('beatgameagechart')
.setDescription('beatgameagechart')
.setName('chartbeatgameage')
.setDescription('Generate a scatter chart of the age of the games that have been beaten')
.addUserOption(option => option.setName('user').setDescription('The user to check'))
.addIntegerOption(option => option.setName('year').setDescription('The year to check').addChoices({ name: '2024', value: 2024 }, { name: '2025', value: 2025 })),
async execute(interaction) {

View File

@ -6,8 +6,8 @@ const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('beattimeline')
.setDescription('beattimeline')
.setName('chartbeatgames')
.setDescription('Generate a line graph of the games beat over time')
.addUserOption(option => option.setName('user').setDescription('The user to check')),
async execute(interaction) {