feat: switched back to node-ts because discord.js is a moron

This commit is contained in:
TresAbhi committed 2023-04-27 01:00:56 +00:00
1 parent 560f033a78
commit 6ddf030ce3
8 files changed
+205 -334

No files matched your search

+2 -1
View File
@@ -2,10 +2,11 @@ import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
import packageJSON from '../../package.json' assert { type: 'json' };
import { CommandRegistry } from '../behaviors/interactionCreate.js';
import { SKILLED_COLOR } from '../constants/colors.js';
import { executionStart } from '../index.js';
import getClientId from '../utilities/getClientId.js';
import { tankopedia } from '../utilities/tankopedia.js';
const executionStart = new Date().getTime();
export default {
inProduction: true,
inDevelopment: false,
+1 -1
View File
@@ -7,7 +7,7 @@ import getBlitzAccount from '../utilities/getBlitzAccount.js';
import getBlitzStarsAccount from '../utilities/getBlitzStarsAccount.js';
import poweredByBlitzStars from '../utilities/poweredByBlitzStars.js';
export const CLANS = {
const CLANS = {
sklld: {
name: 'Skilled',
id: 71559,
+7 -8
View File
@@ -1,10 +1,6 @@
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
import discord from '../../discord.json' assert { type: 'json' };
import {
CommandRegistry,
guildCommands,
publicCommands,
} from '../behaviors/interactionCreate.js';
import { CommandRegistry } from '../behaviors/interactionCreate.js';
import { SKILLED_COLOR } from '../constants/colors.js';
export default {
@@ -16,7 +12,7 @@ export default {
.setName('help')
.setDescription('All the help you need about the bot'),
async execute(interaction) {
async execute(interaction, commandCollection) {
await interaction.reply({
embeds: [
new EmbedBuilder()
@@ -25,8 +21,11 @@ export default {
.setDescription(
`**About**\nSkilled Bot automates many mundane tasks and provide statistics in numerous flexible ways.\n\nMade by TresAbhi from the Skilled [SKLLD] clan.\nGitHub: https://github.com/sklld/bot\nSkilled: https://discord.gg/ZPvcEG7DS8\n\n**Commands**\n${(interaction.guildId ===
discord.guild_id
? [...guildCommands, ...publicCommands]
: publicCommands
? [
...commandCollection.guildCommands,
...commandCollection.publicCommands,
]
: commandCollection.publicCommands
)
.map((command) => `**/${command.name}**: ${command.description}`)
.join(