fca-naughty1 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/broadcast.js +3 -3
- package/index.js +13 -18
- package/logger.js +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
#
|
1
|
+
# UNOFFICAL FACEBOOK CHAT API BY NAUGHTY 😇
|
package/broadcast.js
CHANGED
@@ -3,9 +3,9 @@ switch (global.Fca.Require.FastConfig.BroadCast) {
|
|
3
3
|
try {
|
4
4
|
var logger = global.Fca.Require.logger;
|
5
5
|
var Fetch = global.Fca.Require.Fetch;
|
6
|
-
Fetch.get("https://raw.githubusercontent.com
|
6
|
+
Fetch.get("https://raw.githubusercontent.com").then(async (/** @type {{ body: { toString: () => string; }; }} */ res) => {
|
7
7
|
global.Fca.Data.BroadCast = JSON.parse(res.body.toString())
|
8
|
-
var random = JSON.parse(res.body.toString())[Math.floor(Math.random() * JSON.parse(res.body.toString()).length)] || "
|
8
|
+
var random = JSON.parse(res.body.toString())[Math.floor(Math.random() * JSON.parse(res.body.toString()).length)] || "Naughty !";
|
9
9
|
logger.Normal(random);
|
10
10
|
});
|
11
11
|
}
|
@@ -16,7 +16,7 @@ switch (global.Fca.Require.FastConfig.BroadCast) {
|
|
16
16
|
try {
|
17
17
|
try {
|
18
18
|
var logger = global.Fca.Require.logger;
|
19
|
-
var random = global.Fca.Data.BroadCast[Math.floor(Math.random() * global.Fca.Data.BroadCast.length)] || "
|
19
|
+
var random = global.Fca.Data.BroadCast[Math.floor(Math.random() * global.Fca.Data.BroadCast.length)] || "Naughty !";
|
20
20
|
logger.Normal(random);
|
21
21
|
}
|
22
22
|
catch (e) {
|
package/index.js
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
/**
|
4
|
-
|
5
|
-
** A few words about developer appstate security.
|
6
|
-
*! Statement renouncing responsibility for the security of appstate encryption of the following operating systems: windows, Android, Linux operating systems,.. (maybe repl.it?),
|
7
|
-
*! because the above operating systems are private (except rep.it if the fraudster does not own your account or invite link to join).
|
8
|
-
*! If the intruder owns the computer, these private operating systems,the security of this fca cannot guarantee 100% of the time.
|
9
|
-
** If the grammar is wrong, please understand because I'm just a kid 🍵.
|
4
|
+
FACEBOOK CHAT API BY NAUGHTY
|
10
5
|
*/
|
11
6
|
|
12
7
|
/!-[ Global Set ]-!/
|
@@ -96,31 +91,31 @@ global.Fca = new Object({
|
|
96
91
|
});
|
97
92
|
|
98
93
|
/!-[ Check File To Run Process ]-!/
|
99
|
-
|
94
|
+
console.log("UNOFFICIAL FACEBOOK CHAT API MADE BY FARIS");
|
100
95
|
let Boolean_Fca = ["AutoUpdate","Uptime","BroadCast","EncryptFeature","AutoLogin","ResetDataLogin","Login2Fa","Logo"];
|
101
96
|
let String_Fca = ["MainName","PreKey","Language","AuthString","Config"]
|
102
97
|
let Number_Fca = ["AutoRestartMinutes"];
|
103
98
|
let All_Variable = Boolean_Fca.concat(String_Fca,Number_Fca);
|
104
99
|
|
105
100
|
try {
|
106
|
-
if (!global.Fca.Require.fs.existsSync(process.cwd() + '/
|
107
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
101
|
+
if (!global.Fca.Require.fs.existsSync(process.cwd() + '/Fca-Naughty.json')) {
|
102
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/Fca-Naughty.json", JSON.stringify(global.Fca.Data.ObjFastConfig, null, "\t"));
|
108
103
|
process.exit(1);
|
109
104
|
}
|
110
105
|
|
111
106
|
try {
|
112
|
-
var DataLanguageSetting = require(process.cwd() + "/
|
107
|
+
var DataLanguageSetting = require(process.cwd() + "/Fca-Naughty.json");
|
113
108
|
}
|
114
109
|
catch (e) {
|
115
110
|
global.Fca.Require.logger.Error('Detect Your FastConfigFca Settings Invalid!, Carry out default restoration');
|
116
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
111
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/Fca-Naughty.json", JSON.stringify(global.Fca.Data.ObjFastConfig, null, "\t"));
|
117
112
|
process.exit(1)
|
118
113
|
}
|
119
|
-
if (global.Fca.Require.fs.existsSync(process.cwd() + '/
|
114
|
+
if (global.Fca.Require.fs.existsSync(process.cwd() + '/Fca-Naughty.json')) {
|
120
115
|
try {
|
121
116
|
if (DataLanguageSetting.Logo != undefined) {
|
122
117
|
delete DataLanguageSetting.Logo
|
123
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
118
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/Fca-Naughty.json", JSON.stringify(DataLanguageSetting, null, "\t"));
|
124
119
|
}
|
125
120
|
}
|
126
121
|
catch (e) {
|
@@ -150,7 +145,7 @@ catch (e) {
|
|
150
145
|
for (let i of All_Variable) {
|
151
146
|
if (!DataLanguageSetting[All_Variable[i]] == undefined) {
|
152
147
|
DataLanguageSetting[All_Variable[i]] = global.Fca.Data.ObjFastConfig[All_Variable[i]];
|
153
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
148
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/Fca-Naughty.json", JSON.stringify(DataLanguageSetting, null, "\t"));
|
154
149
|
}
|
155
150
|
else continue;
|
156
151
|
}
|
@@ -1136,9 +1131,9 @@ try {
|
|
1136
1131
|
Fetch('https://raw.githubusercontent.com/corazoncary/fca/main/package.json').then(async (/** @type {{ body: { toString: () => string; }; }} */res) => {
|
1137
1132
|
const localVersion = global.Fca.Version;
|
1138
1133
|
if (Number(localVersion.replace(/\./g,"")) < Number(JSON.parse(res.body.toString()).version.replace(/\./g,"")) ) {
|
1139
|
-
log.warn("[ FCA-
|
1134
|
+
log.warn("[ FCA-NAUGHTY ] •",getText(Language.NewVersionFound,global.Fca.Version,JSON.parse(res.body.toString()).version));
|
1140
1135
|
if (global.Fca.Require.FastConfig.AutoUpdate == true) {
|
1141
|
-
log.warn("[ FCA-
|
1136
|
+
log.warn("[ FCA-NAUGHTY ] •",Language.AutoUpdate);
|
1142
1137
|
try {
|
1143
1138
|
execSync('npm install team.atf@latest', { stdio: 'inherit' });
|
1144
1139
|
logger.Success(Language.UpdateSuccess)
|
@@ -1164,7 +1159,7 @@ try {
|
|
1164
1159
|
}
|
1165
1160
|
catch (e) {
|
1166
1161
|
logger.Warning("Error Please Enter The Following Code In Console To Fix !");
|
1167
|
-
logger.Warning("rmdir -rf ./node_modules/fca-
|
1162
|
+
logger.Warning("rmdir -rf ./node_modules/fca-naughty1 && npm i fca-naughty1@latest && npm start");
|
1168
1163
|
logger.Warning("Please Copy All The Above Words, Need To Do It 100% Correctly Otherwise Your File Will Be Discolored ✨")
|
1169
1164
|
process.exit(0);
|
1170
1165
|
}
|
@@ -1232,7 +1227,7 @@ function setUserNameAndPassWord() {
|
|
1232
1227
|
}
|
1233
1228
|
if (global.Fca.Require.FastConfig.ResetDataLogin) {
|
1234
1229
|
global.Fca.Require.FastConfig.ResetDataLogin = false;
|
1235
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + '/
|
1230
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + '/Fca-Naughty.json', JSON.stringify(global.Fca.Require.FastConfig, null, 4));
|
1236
1231
|
}
|
1237
1232
|
logger.Success(Language.SuccessSetData);
|
1238
1233
|
process.exit(1);
|
package/logger.js
CHANGED
@@ -20,7 +20,7 @@ module.exports = {
|
|
20
20
|
if (isHexcolor(global.Fca.Require.FastConfig.MainColor) != true) {
|
21
21
|
this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.FastConfig.MainColor),process.exit(0));
|
22
22
|
}
|
23
|
-
else console.log(chalk.hex(global.Fca.Require.FastConfig.MainColor).bold(`${global.Fca.Require.FastConfig.MainName || '[
|
23
|
+
else console.log(chalk.hex(global.Fca.Require.FastConfig.MainColor).bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-NAUGHTY ]'} > `) + Str);
|
24
24
|
if (getType(Data) == 'Function' || getType(Data) == 'AsyncFunction') {
|
25
25
|
return Data();
|
26
26
|
}
|
@@ -41,7 +41,7 @@ module.exports = {
|
|
41
41
|
},
|
42
42
|
Error: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
|
43
43
|
if (!str) {
|
44
|
-
console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red("Already Faulty, Please Contact: Facebook.com/
|
44
|
+
console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red("Already Faulty, Please Contact: Facebook.com/NAUGHTY.OFFICIAL"));
|
45
45
|
}
|
46
46
|
console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red(str));
|
47
47
|
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
|
@@ -50,14 +50,14 @@ module.exports = {
|
|
50
50
|
else return callback;
|
51
51
|
},
|
52
52
|
Success: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
|
53
|
-
console.log(chalk.hex('#
|
53
|
+
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-NAUGHTY ]'} > `) + chalk.green(str));
|
54
54
|
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
|
55
55
|
callback();
|
56
56
|
}
|
57
57
|
else return callback;
|
58
58
|
},
|
59
59
|
Info: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
|
60
|
-
console.log(chalk.hex('#
|
60
|
+
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-NAUGHTY ]'} > `) + chalk.blue(str));
|
61
61
|
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
|
62
62
|
callback();
|
63
63
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "fca-naughty1",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.7",
|
4
4
|
"description": "Facebook-chat-api by Naughty",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -11,12 +11,12 @@
|
|
11
11
|
"author": "Naughty",
|
12
12
|
"license": "MIT",
|
13
13
|
"bugs": {
|
14
|
-
"url": "https://github.com/
|
14
|
+
"url": "https://github.com/"
|
15
15
|
},
|
16
|
-
"homepage": "https://github.com/
|
16
|
+
"homepage": "https://github.com/",
|
17
17
|
"repository": {
|
18
18
|
"type": "git",
|
19
|
-
"url": "https://github.com/
|
19
|
+
"url": "https://github.com/"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
22
|
"aes-js": "latest",
|