diff --git a/bun.lockb b/bun.lockb index 48210957..237d65f8 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index a69d38cd..81130673 100644 --- a/package.json +++ b/package.json @@ -41,9 +41,7 @@ "minimist": "^1.2.8", "moment": "^2.30.1", "pino": "^8.19.0", - "sequelize": "^6.37.1", - "splid-js": "^1.1.1", - "sqlite3": "~5.1.7" + "splid-js": "^1.1.1" }, "devDependencies": { "@biomejs/biome": "^1.6.3", diff --git a/src/app.ts b/src/app.ts index cb786d71..23cb2de8 100644 --- a/src/app.ts +++ b/src/app.ts @@ -16,7 +16,6 @@ import messageHandler from "./handler/messageHandler.js"; import messageDeleteHandler from "./handler/messageDeleteHandler.js"; import BdayHandler from "./handler/bdayHandler.js"; import * as fadingMessageHandler from "./handler/fadingMessageHandler.js"; -import * as storage from "./storage/storage.js"; import * as kysely from "./storage/kysely.js"; import * as ban from "./commands/modcommands/ban.js"; @@ -269,7 +268,6 @@ client.once("ready", async initializedClient => { botContext = await createBotContext(initializedClient); console.assert(!!botContext, "Bot context should be available"); // TODO: Remove once botContext is used - await storage.initialize(botContext.databasePath); await kysely.connectToDb(botContext.databasePath); await scheduleCronjobs(botContext); diff --git a/src/storage/storage.ts b/src/storage/storage.ts deleted file mode 100644 index 821543e6..00000000 --- a/src/storage/storage.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Sequelize } from "sequelize"; - -import log from "../utils/logger.js"; - -export async function initialize(databasePath: string) { - const sequelize = new Sequelize({ - dialect: "sqlite", - storage: databasePath, - logQueryParameters: true, - logging: sql => log.trace(sql), - }); - - log.info("Initializing Database Schemas..."); - - await sequelize.sync(); -}