(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:
@@ -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');
|
||||
Reference in New Issue
Block a user