From 9a97476e638761b3fcfa82bb744fbe7617050501 Mon Sep 17 00:00:00 2001 From: baz Date: Sun, 5 Jan 2025 22:00:51 +0000 Subject: [PATCH] Rename chart commands with chart prefix --- .../100-games/{beatgameagechart.js => chartbeatgameage.js} | 6 +++--- commands/100-games/{beattimeline.js => chartbeatgames.js} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename commands/100-games/{beatgameagechart.js => chartbeatgameage.js} (96%) rename commands/100-games/{beattimeline.js => chartbeatgames.js} (97%) diff --git a/commands/100-games/beatgameagechart.js b/commands/100-games/chartbeatgameage.js similarity index 96% rename from commands/100-games/beatgameagechart.js rename to commands/100-games/chartbeatgameage.js index 75996d7..acb60d1 100644 --- a/commands/100-games/beatgameagechart.js +++ b/commands/100-games/chartbeatgameage.js @@ -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) { diff --git a/commands/100-games/beattimeline.js b/commands/100-games/chartbeatgames.js similarity index 97% rename from commands/100-games/beattimeline.js rename to commands/100-games/chartbeatgames.js index 23b9532..f17dea4 100644 --- a/commands/100-games/beattimeline.js +++ b/commands/100-games/chartbeatgames.js @@ -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) {