This commit is contained in:
Benjamin Toby
2025-02-19 20:01:50 +01:00
parent c08db13f3d
commit e9bb9fb07f
113 changed files with 253 additions and 63 deletions
@@ -16,6 +16,7 @@ const grabAuthDirs = () => {
};
exports.grabAuthDirs = grabAuthDirs;
const initAuthFiles = () => {
var _a;
try {
const authDirs = (0, exports.grabAuthDirs)();
if (!fs_1.default.existsSync(authDirs.root))
@@ -26,6 +27,7 @@ const initAuthFiles = () => {
}
catch (error) {
console.log(`Error initializing Auth Files: ${error.message}`);
(_a = global.ERROR_CALLBACK) === null || _a === void 0 ? void 0 : _a.call(global, `Error Initializing Auth Files`, error);
return false;
}
};