forked from embee/woomy
Fixed datastore on server
This commit is contained in:
parent
0874cbc450
commit
accc889ff3
1 changed files with 11 additions and 12 deletions
21
src/index.js
21
src/index.js
|
@ -12,20 +12,19 @@ client.logger = require('./modules/Logger');
|
|||
require("./modules/functions")(client);
|
||||
client.logger.setClient(client);
|
||||
|
||||
client.commands = new Enmap();
|
||||
client.aliases = new Enmap();
|
||||
client.settings = new Enmap({name: 'settings', dataDir: '../data'});
|
||||
client.blacklist = new Enmap({name: 'blacklist', dataDir: '../data'});
|
||||
|
||||
client.devmode = false;
|
||||
|
||||
if(process.env['USER'] != 'container') {
|
||||
client.devmode = true;
|
||||
};
|
||||
|
||||
if(client.devmode === false) {
|
||||
client.settings = new Enmap({name: 'settings', dataDir: '../data'});
|
||||
client.blacklist = new Enmap({name: 'blacklist', dataDir: '../data'});
|
||||
} else {
|
||||
client.devmode = false;
|
||||
const dblapi = new DBL(client.config.dblkey, client);
|
||||
};
|
||||
client.settings = new Enmap({name: 'settings'});
|
||||
client.blacklist = new Enmap({name: 'blacklist'});
|
||||
}
|
||||
|
||||
client.commands = new Enmap();
|
||||
client.aliases = new Enmap();
|
||||
|
||||
const init = async () => {
|
||||
const cmdFiles = await readdir("./commands/");
|
||||
|
|
Loading…
Reference in a new issue