(rewrite): Commands now deploy.

This commit is contained in:
2026-08-11 19:47:20 +08:00
parent 34e88d9a4f
commit dfaeee78e8
2 changed files with 21 additions and 3 deletions
+4 -3
View File
@@ -1,12 +1,13 @@
export * from './handle-audit-log-create';
// export * from './handle-audit-log-create';
import guildBanRemove from './guildBanRemove';
import guildCreate from './guildCreate';
import guildMemberAdd from './guildMemberAdd';
export * from './handle-message';
import ready from './ready';
// export * from './handle-message';
import threadCreate from './threadCreate';
import voiceChannelJoin from './voiceChannelJoin';
import voiceChannelLeft from './voiceChannelLeft';
import voiceChannelSwitch from './voiceChannelSwitch';
export default [guildBanRemove, guildCreate, guildMemberAdd, threadCreate, voiceChannelJoin, voiceChannelLeft, voiceChannelSwitch];
export default [guildBanRemove, guildCreate, guildMemberAdd, ready, threadCreate, voiceChannelJoin, voiceChannelLeft, voiceChannelSwitch];
+17
View File
@@ -0,0 +1,17 @@
// External Imports
import { CommandClient, Event, Guild } from 'athena-prime';
// ---------------
class ReadyEvent extends Event<CommandClient> {
event: string = 'ready' as const;
async handle(context: CommandClient<any, any>, guild: Guild) {
await context.deployCommands();
// :3 - This is non-negotiable.
context.setCustomActivity('Hugging my favourite bat: nix :3');
}
}
export default new ReadyEvent('ready');