feat: switched to vite node

This commit is contained in:
TresAbhi committed 2023-04-28 13:42:42 +00:00
1 parent d9deeb3630
commit 8ff34f0bbb
14 files changed
+370 -222

No files matched your search

+8 -7
View File
@@ -1,6 +1,10 @@
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
import discord from '../../discord.json' assert { type: 'json' };
import { CommandRegistry } from '../behaviors/interactionCreate.js';
import {
CommandRegistry,
guildCommands,
publicCommands,
} from '../behaviors/interactionCreate.js';
import { SKILLED_COLOR } from '../constants/colors.js';
export default {
@@ -12,7 +16,7 @@ export default {
.setName('help')
.setDescription('All the help you need about the bot'),
async execute(interaction, commandCollection) {
async execute(interaction) {
await interaction.reply({
embeds: [
new EmbedBuilder()
@@ -21,11 +25,8 @@ 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
? [
...commandCollection.guildCommands,
...commandCollection.publicCommands,
]
: commandCollection.publicCommands
? [...guildCommands, ...publicCommands]
: publicCommands
)
.map((command) => `**/${command.name}**: ${command.description}`)
.join(