meta-fca 2.2.0 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Extra/ExtraAddons.js +1 -1
- package/Extra/ExtraGetThread.js +2 -2
- package/package.json +1 -1
package/Extra/ExtraAddons.js
CHANGED
@@ -65,7 +65,7 @@ module.exports.getAccessToken = async function (jar, ctx,defaultFuncs) {
|
|
65
65
|
return defaultFuncs.post(nextURLS, jar, Form, ctx.globalOptions, {
|
66
66
|
referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fcontent_management&type=avoid_bypass&app_id=0&save_device=0",
|
67
67
|
}).then(async function(dataa) {
|
68
|
-
if (String(dataa.body).includes(false)) throw { Error: "Invaild OTP |
|
68
|
+
if (String(dataa.body).includes(false)) throw { Error: "Invaild OTP | metaConfig.json: AuthString" }
|
69
69
|
return utils.get('https://business.facebook.com/content_management', jar, null, ctx.globalOptions,{
|
70
70
|
referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fcontent_management&type=avoid_bypass&app_id=0&save_device=0",
|
71
71
|
}).then(async function(data) {
|
package/Extra/ExtraGetThread.js
CHANGED
@@ -6,7 +6,7 @@ const logger = require("../logger");
|
|
6
6
|
const getText = global.Fca.getText;
|
7
7
|
var language = require("../Language/index.json");
|
8
8
|
const fs = require("fs");
|
9
|
-
language = language.find(i => i.Language == require(process.cwd() + "/
|
9
|
+
language = language.find(i => i.Language == require(process.cwd() + "/metaConfig.json").Language).Folder.ExtraGetThread;
|
10
10
|
|
11
11
|
if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
12
12
|
if (!fs.existsSync(process.cwd() + "/Horizon_Database/Threads.json")) {
|
@@ -14,7 +14,7 @@ if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") {
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type != "default" && global.Fca.Require.FastConfig.AntiGetInfo.Database_Type != "json") {
|
17
|
-
logger.Warning("Database_Type in
|
17
|
+
logger.Warning("Database_Type in metaConfig.json is not valid. Only default and json are valid.");
|
18
18
|
process.exit(0);
|
19
19
|
}
|
20
20
|
|