Rename chart commands with chart prefix
This commit is contained in:
parent
38481737e7
commit
9a97476e63
|
@ -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) {
|
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue