Skip to content

Commit

Permalink
Remove Sequelize
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Mar 26, 2024
1 parent abb1892 commit fe3610f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 21 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down
16 changes: 0 additions & 16 deletions src/storage/storage.ts

This file was deleted.

0 comments on commit fe3610f

Please sign in to comment.