(init): initial files. includes basic client & database template using postgres.

This commit is contained in:
2026-08-27 22:26:12 +08:00
commit a77ab24e02
17 changed files with 876 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { CommandClient, Event, Guild } from "athena-prime";
import { deleteConfiguration } from "../../utils/database";
// ----------
class GuildDeleteEvent extends Event<CommandClient> {
event: string = 'guildDelete' as const;
async handle(context: CommandClient<any, any>, guild: Guild | { id: string }) {
await deleteConfiguration(guild.id);
}
}
export default new GuildDeleteEvent('guildDelete');