feat: mise à jour du code

This commit is contained in:
UltraLionFr
2025-08-26 01:21:58 +02:00
parent 944845cd11
commit d3d3642ec3
29 changed files with 487 additions and 320 deletions
+8 -8
View File
@@ -1,14 +1,14 @@
const fs = require("fs");
const path = require("path");
const YAML = require("yaml");
const fs = require('fs');
const path = require('path');
const YAML = require('yaml');
function loadYAML(file) {
const filePath = path.join(__dirname, "..", file);
const content = fs.readFileSync(filePath, "utf8");
const filePath = path.join(__dirname, '..', file);
const content = fs.readFileSync(filePath, 'utf8');
return YAML.parse(content);
}
const config = loadYAML("config.yml");
const lang = loadYAML("lang.yml");
const config = loadYAML('config.yml');
const lang = loadYAML('lang.yml');
module.exports = { config, lang };
module.exports = { config, lang };