Skip to content

Commit 4bbaa54

Browse files
committed
Fix starting bug at the price of a race condition
1 parent d6b27fe commit 4bbaa54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ const client = new Client({
2323
})
2424

2525
client.token = client.config ? client.config.bot.token : (await import("./config.js")).bot.token;
26-
await load(client);
26+
client.login()
2727

28-
client.login()
28+
await load(client);

0 commit comments

Comments
 (0)