mirror of
https://github.com/nx-bat/synapse.git
synced 2026-09-22 13:59:05 -04:00
(init): initial files. includes basic client & database template using postgres.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { CommandClient, Event, Guild } from "athena-prime";
|
||||
import { createConfiguration } from "../../utils/database";
|
||||
|
||||
// ----------
|
||||
|
||||
class GuildCreateEvent extends Event<CommandClient> {
|
||||
event: string = 'guildCreate' as const;
|
||||
|
||||
async handle(context: CommandClient<any, any>, guild: Guild) {
|
||||
await createConfiguration(guild.id);
|
||||
}
|
||||
}
|
||||
|
||||
export default new GuildCreateEvent('guildCreate');
|
||||
Reference in New Issue
Block a user