new commands update for the bot

This commit is contained in:
VinceC
2024-11-07 17:28:00 -06:00
parent 7b431e0406
commit 2b577c5be1
9 changed files with 865 additions and 324 deletions

View File

@@ -1,5 +1,4 @@
// deploycommands.js
// deploy-commands.js
const { REST, Routes, SlashCommandBuilder } = require('discord.js');
require('dotenv').config();
@@ -18,7 +17,17 @@ const commands = [
option.setName('game')
.setDescription('Specify a game to view stats for')
.setRequired(false)),
// Add more commands here
new SlashCommandBuilder()
.setName('matchhistory')
.setDescription('View match history')
.addStringOption(option =>
option.setName('username')
.setDescription('The username to search for')
.setRequired(true))
.addStringOption(option =>
option.setName('game')
.setDescription('Filter by game')
.setRequired(false)),
];
const rest = new REST({ version: '10' }).setToken(process.env.BOT_TOKEN);