mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 10:29:11 -04:00
im tired.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { CommandClient, Event, Guild } from 'athena-prime';
|
||||
import database from '../../database';
|
||||
|
||||
// ----------
|
||||
|
||||
class GuildCreateEvent extends Event<CommandClient> {
|
||||
event: string = 'guildDelete' as const;
|
||||
|
||||
// TODO: Implement weekly config cleanup task instead.
|
||||
async handle(context: CommandClient<any, any>, guild: Guild | { id: string }) {
|
||||
await database.config.deleteConfig(guild.id);
|
||||
}
|
||||
}
|
||||
|
||||
export default new GuildCreateEvent('guildDelete');
|
||||
Reference in New Issue
Block a user