alicezetion 1.7.4 → 1.7.5
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/__replit_disk_meta.json +1 -1
- package/index.js +1 -1
- package/logger.js +2 -2
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"nonce":
|
1
|
+
{"nonce":2169765695161073071,"last_updated":{"seconds":1696068160,"nanos":185984000}}
|
package/index.js
CHANGED
@@ -47,7 +47,7 @@ try {
|
|
47
47
|
process.exit(1);
|
48
48
|
} else if (fs.existsSync('./alice/alicezetion.json')) {
|
49
49
|
try {
|
50
|
-
var DataLanguageSetting = require("
|
50
|
+
var DataLanguageSetting = require("./alice/alicezetion.json");
|
51
51
|
} catch (e) {
|
52
52
|
logger("Invalid Config Settings, Restoring Default...");
|
53
53
|
fs.writeFileSync("./alice/alicezetion.json", JSON.stringify(ObjFastConfig, null, "\t"));
|
package/logger.js
CHANGED
@@ -7,12 +7,12 @@ var getText = require('gettext.js')();
|
|
7
7
|
const languageFile = require('./Language/index.json');
|
8
8
|
|
9
9
|
module.exports = (str, end) => {
|
10
|
-
if (isHexcolor(require("
|
10
|
+
if (isHexcolor(require("./../alice/alicezetion.json").MainColor || "#00CCCC") != true) {
|
11
11
|
var Language = languageFile.find(i => i.Language == require("./alice/alicezetion.json").Language).Folder.Index;
|
12
12
|
log.warn("FastConfig-MainColor", getText.gettext(Language.InvaildMainColor,require("./alice/alicezetion.json").MainColor));
|
13
13
|
process.exit(0);
|
14
14
|
}
|
15
|
-
console.log(chalk.hex(require("
|
15
|
+
console.log(chalk.hex(require("./../alice/alicezetion.json").MainColor || "00CCCC").bold(`${end || '[ ALICIZATION ]'} > `) + str);
|
16
16
|
};
|
17
17
|
|
18
18
|
module.exports.onLogger = (str,end) => console.log(chalk.hex('#00CCCC').bold(`${end || '[ FCA-SUS ]'} > `) + str);
|