From 9bfd29b42b21ec44bd6d11bd6bca051a728b143b Mon Sep 17 00:00:00 2001 From: tresabhi Date: Wed, 24 May 2023 02:04:55 +0000 Subject: [PATCH] feat: reorder startup --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 615c1559d..c649411ed 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,10 +11,11 @@ registerErrorHandlers(); export const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers], }); -export const browser = await chromium.launch(); client .on('ready', ready) .on('guildMemberAdd', guildMemberAdd) .on('interactionCreate', interactionCreate) .login(args['discord-token']); + +export const browser = await chromium.launch();