Files
ButlerBot/src/registerSlashCommands.ts
Jack 3a9fc1897a
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 42s
Improve typing.
2024-09-16 14:13:37 +00:00

13 lines
330 B
TypeScript

import { getCommands, registerSlashCommands } from './utils/commands';
const commands = getCommands();
registerSlashCommands(commands)
.then(() => {
console.log('Successfully registered slash commands');
})
.catch((error) => {
console.error('Failed to register slash commands:', error);
process.exit(1);
});