mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-06-07 23:49:29 +00:00
Fixed deploy command script and made the commands work. The bot is working as expected.
This commit is contained in:
parent
ef298accc3
commit
4a9f5538a3
6 changed files with 77 additions and 62 deletions
|
@ -5,7 +5,7 @@ import { Client, Collection, Events, GatewayIntentBits } from'discord.js';
|
|||
import config from './config.json' assert { type: 'json' };
|
||||
import { deployCommands } from './util/deployCommand.js';
|
||||
|
||||
const { token, application_client_id, guild_id } = config;
|
||||
const { token } = config;
|
||||
|
||||
// Create a new client instance
|
||||
const client: any = new Client({ intents: [GatewayIntentBits.Guilds] });
|
||||
|
@ -33,7 +33,7 @@ try {
|
|||
}
|
||||
|
||||
try {
|
||||
await deployCommands({token, guild_id, application_client_id});
|
||||
await deployCommands();
|
||||
} catch (error: any) {
|
||||
console.log(`Error while registering commands: ${error}`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue