This commit is contained in:
Killer Boss Original 2022-07-05 13:26:02 +02:00 committed by GitHub
parent a8e4977f55
commit 2a3ac5b417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,16 @@ client.config = require('./config.js').settings;
const MapDB = require('quickmap.db'); const MapDB = require('quickmap.db');
const db = new MapDB('database.json'); 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 fs = require('fs');
var data = fs.readFileSync('./data/database.json'); var data = fs.readFileSync('./data/database.json');