implement db into code where needed instead.

This commit is contained in:
2026-09-13 17:33:48 +08:00
parent b3521938f5
commit 141f68ba5e
9 changed files with 206 additions and 96 deletions
+12 -1
View File
@@ -26,5 +26,16 @@ events.forEach((event) => client.registerEvent(event, true));
// ----------
database.points.init();
database`
CREATE TABLE IF NOT EXISTS points (
user_id TEXT NOT NULL,
guild_id TEXT NOT NULL,
points INTEGER NOT NULL DEFAULT 0 CHECK (points >= 0),
PRIMARY KEY (user_id, guild_id)
)
`;
// ----------
client.connect();