feat: general inactive command

This commit is contained in:
TresAbhi committed 2023-04-26 01:23:07 +00:00
1 parent 468bca77de
commit 57cc67c8be
10 files changed
+189 -115

No files matched your search

+5 -5
View File
@@ -9,7 +9,7 @@ import poweredByBlitzStars from '../utilities/poweredByBlitzStars.js';
export default {
inProduction: true,
inDevelopment: true,
inDevelopment: false,
inPublic: true,
command: new SlashCommandBuilder()
@@ -39,24 +39,24 @@ export default {
)
.addStringOption((option) =>
option
.setName('ign')
.setName('name')
.setDescription('The username you use in Blitz')
.setRequired(true),
),
execute(interaction) {
const ign = interaction.options.getString('ign')!;
const name = interaction.options.getString('name')!;
const server = interaction.options.getString('server') as BlitzServer;
const period = interaction.options.getString('period')! as
| '30'
| '90'
| 'career';
getBlitzAccount(interaction, ign, server, async (account) => {
getBlitzAccount(interaction, name, server, async (account) => {
getBlitzStarsAccount(
interaction,
account.account_id,
ign,
name,
async (data) => {
{
const stats =