diff options
author | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-20 01:30:23 +0200 |
---|---|---|
committer | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-20 01:30:23 +0200 |
commit | 44210691ee8444509ac466a362337af77f2bcd49 (patch) | |
tree | 4dc2f242cf5fd4daa3fc6f9e42516e7d55b73538 /nest/abi.js | |
parent | efa5fc926071de7087836d399c42f53e701b4cff (diff) | |
download | kartik-client-44210691ee8444509ac466a362337af77f2bcd49.tar.gz kartik-client-44210691ee8444509ac466a362337af77f2bcd49.tar.bz2 kartik-client-44210691ee8444509ac466a362337af77f2bcd49.zip |
Commit
Diffstat (limited to 'nest/abi.js')
-rw-r--r-- | nest/abi.js | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/nest/abi.js b/nest/abi.js index b72f964..5945705 100644 --- a/nest/abi.js +++ b/nest/abi.js @@ -1,6 +1,8 @@ const fs = require('fs'); var zlib = require('zlib'); +console.log("\n\nKartik Fox Nest, a compressed and simple data storage for Kartik.\n(c) Minteck, All Rights Reserved\n\n") + module.exports = { export(file, obj) { fs.writeFileSync(file, zlib.deflateSync(Buffer.from(Buffer.from(JSON.stringify(obj)).toString("base64")).toString("base64"))) @@ -19,7 +21,7 @@ module.exports = { return decoded; }, - async generate(file) { + generate(file) { o = { "_version": "<unknown>", "stats": { @@ -40,25 +42,13 @@ module.exports = { }, "auth": null, "config": { - "lang": null, + "lang": "en", "music": true, "online": true, "voice": false } } - slpm = require('os-locale'); - slpw = await slpm(); - slpo = slpw.substr(0, 2); - slng = require('../lang/languages.json'); - if (Object.keys(slng).includes(slpo)) { - dlp = slpo; - } else { - dlp = "en"; - } - - o.config.lang = dlp; - this.export(file, o); }, |