Improve typing.
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 42s
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 42s
This commit is contained in:
12
src/registerSlashCommands.ts
Normal file
12
src/registerSlashCommands.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user