(rewrite): Bot & Events. This most definitely doesn't work yet. I'm just running out of time to work on this atm.

This commit is contained in:
2026-08-11 10:27:07 +08:00
parent 2b65793903
commit 32b06a384b
25 changed files with 292 additions and 154 deletions
+15
View File
@@ -0,0 +1,15 @@
// External Imports
import { CommandClient, Event, Guild } from 'athena-prime';
// Internal Imports
import { Database } from '../shared/Database';
class GuildCreateEvent extends Event<CommandClient> {
event: string = 'guildCreate' as const;
async handle(context: CommandClient<any, any>, guild: Guild) {
await Database.GetOrCreateSettings(guild.id);
}
}
export default new GuildCreateEvent('guildCreate');