d
This commit is contained in:
parent
a8e4977f55
commit
2a3ac5b417
1 changed files with 10 additions and 0 deletions
10
index.js
10
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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue