ui changes

This commit is contained in:
2025-10-03 08:39:32 -04:00
parent 1341b325ee
commit 9bc7a5e6b8
18 changed files with 629 additions and 419 deletions

View File

@@ -1,8 +1,9 @@
const { Client, GatewayIntentBits, Collection } = require('discord.js');
const fs = require('fs');
const path = require('path');
const deployCommands = require('./deploy-commands');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers] });
client.commands = new Collection();
@@ -27,6 +28,10 @@ client.on('interactionCreate', async interaction => {
}
});
client.on('guildCreate', guild => {
deployCommands(guild.id);
});
const login = () => {
client.login(process.env.DISCORD_BOT_TOKEN);
}