mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: cleaned up startup
This commit is contained in:
1 parent
1b59ca9bb5
commit
1affdce512
2 files changed
+5
-9
No files matched your search
@@ -37,6 +37,4 @@ export function registerErrorHandlers() {
|
||||
client.on(name, (error) => handleError(error, 'client error')),
|
||||
);
|
||||
}
|
||||
|
||||
return client;
|
||||
}
|
||||
+5
-7
@@ -7,12 +7,10 @@ import ready from './events/ready.js';
|
||||
|
||||
export const client = new Client({
|
||||
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers],
|
||||
});
|
||||
|
||||
registerErrorHandlers();
|
||||
|
||||
client
|
||||
})
|
||||
.on('ready', ready)
|
||||
.on('guildMemberAdd', guildMemberAdd)
|
||||
.on('interactionCreate', interactionCreate)
|
||||
.login(discordToken);
|
||||
.on('interactionCreate', interactionCreate);
|
||||
|
||||
registerErrorHandlers();
|
||||
client.login(discordToken);
|
||||
Reference in new issue
Block a user