Skip to content

Commit c0ed861

Browse files
author
xyzjesper
committed
updated database inits
1 parent a5dcc18 commit c0ed861

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/main/bot.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ await disbotClient
7878
disbotClient.setMaxListeners(0);
7979

8080
// Database init (Default)
81-
initDataToDatabase(disbotClient)
81+
await initDataToDatabase(disbotClient)
82+
8283
// Load Commands
8384
await CommandHelper.loadCommands(disbotClient);
8485

@@ -91,7 +92,7 @@ await disbotClient
9192
await vote(disbotClient);
9293
await app(disbotClient);
9394
await vanityAPI(disbotClient);
94-
95+
9596
})
9697
.catch((err) => {
9798
Logger.error(`Failed to login: ${err instanceof Error ? err.message : String(err)}`);

src/main/database.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ export async function connectToDatabase(client: ExtendedClient) {
3737
export async function initDataToDatabase(client: ExtendedClient) {
3838

3939
try {
40-
await migrateDataBase(client)
41-
await initGuildsToDatabase(client)
40+
// TODO: Update database inits
41+
// await migrateDataBase(client)
42+
// await initGuildsToDatabase(client)
4243
await setupDisBotConfig(client)
4344

4445
// Repeat Database Init

0 commit comments

Comments
 (0)