From 2a3ac5b4171bea817fb6ae83e8c8b3a49c24fdd5 Mon Sep 17 00:00:00 2001 From: Killer Boss Original <73131550+killerbossoriginal@users.noreply.github.com> Date: Tue, 5 Jul 2022 13:26:02 +0200 Subject: [PATCH] d --- index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.js b/index.js index d083258..7340cf9 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,16 @@ client.config = require('./config.js').settings; const MapDB = require('quickmap.db'); const db = new MapDB('database.json'); + +async function setup() { + var isset = await db.get('client.issetupped') + if (!isset) { + await db.set('client.issetupped', true) + } +} + +setup() + var fs = require('fs'); var data = fs.readFileSync('./data/database.json');