mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 10:29:11 -04:00
implement db into code where needed instead.
This commit is contained in:
+12
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user