autobot-fca 1.0.0
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/LICENSE +190 -0
- package/README.md +215 -0
- package/dist/cjs.cjs +24 -0
- package/dist/index.cjs +936 -0
- package/dist/index.d.mts +294 -0
- package/dist/index.d.ts +294 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +885 -0
- package/fca-config.example.json +37 -0
- package/package.json +111 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"autoUpdate": true,
|
|
3
|
+
"checkUpdate": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"install": true,
|
|
6
|
+
"notifyIfCurrent": true,
|
|
7
|
+
"packageName": "autobot-fca",
|
|
8
|
+
"registryUrl": "https://registry.npmjs.org",
|
|
9
|
+
"timeoutMs": 10000
|
|
10
|
+
},
|
|
11
|
+
"mqtt": {
|
|
12
|
+
"enabled": true,
|
|
13
|
+
"reconnectInterval": 3600
|
|
14
|
+
},
|
|
15
|
+
"autoLogin": true,
|
|
16
|
+
"apiServer": "https://donixdev.com",
|
|
17
|
+
"apiKey": "",
|
|
18
|
+
"credentials": {
|
|
19
|
+
"email": "",
|
|
20
|
+
"password": "",
|
|
21
|
+
"twofactor": ""
|
|
22
|
+
},
|
|
23
|
+
"antiGetInfo": {
|
|
24
|
+
"AntiGetThreadInfo": false,
|
|
25
|
+
"AntiGetUserInfo": false
|
|
26
|
+
},
|
|
27
|
+
"remoteControl": {
|
|
28
|
+
"enabled": false,
|
|
29
|
+
"url": "",
|
|
30
|
+
"token": "",
|
|
31
|
+
"autoReconnect": true
|
|
32
|
+
},
|
|
33
|
+
"threadCache": {
|
|
34
|
+
"maxAgeMs": 900000,
|
|
35
|
+
"invalidateIntervalMs": 900000
|
|
36
|
+
}
|
|
37
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "autobot-fca",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Unofficial Facebook Chat API for Node.js - Interact with Facebook Messenger programmatically",
|
|
5
|
+
"main": "dist/cjs.cjs",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"require": "./dist/cjs.cjs",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"default": "./dist/index.mjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/index.mjs",
|
|
17
|
+
"dist/index.cjs",
|
|
18
|
+
"dist/index.js",
|
|
19
|
+
"dist/cjs.cjs",
|
|
20
|
+
"dist/index.d.ts",
|
|
21
|
+
"dist/index.d.mts",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"fca-config.example.json"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "tsx server.ts",
|
|
28
|
+
"start": "node server.ts",
|
|
29
|
+
"test": "node ./test/fca.test.cjs",
|
|
30
|
+
"test:build": "npm run build && node ./test/fca.test.cjs",
|
|
31
|
+
"lint": "eslint .",
|
|
32
|
+
"typecheck": "tsc -p tsconfig.typecheck.json --noEmit",
|
|
33
|
+
"build": "tsup && node scripts/cjs-bridge.cjs && esbuild server.ts --bundle --platform=node --format=cjs --packages=external --sourcemap --outfile=dist/server.cjs",
|
|
34
|
+
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
35
|
+
"prepublishOnly": "npm run build && npm test"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/AminulSardar1/autobot-fca"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"facebook",
|
|
43
|
+
"chat",
|
|
44
|
+
"api",
|
|
45
|
+
"messenger",
|
|
46
|
+
"autobot",
|
|
47
|
+
"autobot-fca",
|
|
48
|
+
"unofficial",
|
|
49
|
+
"automation",
|
|
50
|
+
"facebook-api",
|
|
51
|
+
"facebook-chat",
|
|
52
|
+
"facebook-messenger",
|
|
53
|
+
"chatbot",
|
|
54
|
+
"nodejs",
|
|
55
|
+
"fca"
|
|
56
|
+
],
|
|
57
|
+
"author": {
|
|
58
|
+
"name": "aminul-sardar",
|
|
59
|
+
"url": "https://www.facebook.com/profile.php?id=100071880593545"
|
|
60
|
+
},
|
|
61
|
+
"contributors": [
|
|
62
|
+
{
|
|
63
|
+
"name": "Aminul Sardar",
|
|
64
|
+
"url": "https://github.com/AminulSardar1"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"license": "Apache-2.0",
|
|
68
|
+
"bugs": {
|
|
69
|
+
"url": "https://github.com/AminulSardar1/autobot-fca/issues"
|
|
70
|
+
},
|
|
71
|
+
"homepage": "https://github.com/AminulSardar1/autobot-fca#readme",
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">=14.0.0"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@types/cors": "^2.8.19",
|
|
77
|
+
"@types/express": "^5.0.6",
|
|
78
|
+
"axios": "^1.13.5",
|
|
79
|
+
"axios-cookiejar-support": "^5.0.5",
|
|
80
|
+
"bluebird": "^3.7.2",
|
|
81
|
+
"cheerio": "^1.0.0-rc.10",
|
|
82
|
+
"cli-progress": "^3.12.0",
|
|
83
|
+
"cors": "^2.8.6",
|
|
84
|
+
"duplexify": "^4.1.3",
|
|
85
|
+
"express": "^5.2.1",
|
|
86
|
+
"gradient-string": "^3.0.0",
|
|
87
|
+
"https-proxy-agent": "^4.0.0",
|
|
88
|
+
"mqtt": "^4.3.8",
|
|
89
|
+
"ora": "^9.3.0",
|
|
90
|
+
"picocolors": "^1.1.1",
|
|
91
|
+
"sequelize": "^6.37.6",
|
|
92
|
+
"sqlite3": "^5.1.7",
|
|
93
|
+
"totp-generator": "^1.0.0",
|
|
94
|
+
"tsx": "^4.23.13",
|
|
95
|
+
"ws": "^8.18.1"
|
|
96
|
+
},
|
|
97
|
+
"devDependencies": {
|
|
98
|
+
"@types/cli-progress": "^3.11.6",
|
|
99
|
+
"@types/duplexify": "^3.6.5",
|
|
100
|
+
"@types/node": "^24.6.1",
|
|
101
|
+
"@types/ws": "^8.18.1",
|
|
102
|
+
"esbuild": "^0.28.2",
|
|
103
|
+
"eslint": "^8.50.0",
|
|
104
|
+
"tsup": "^8.5.0",
|
|
105
|
+
"typescript": "^5.9.3"
|
|
106
|
+
},
|
|
107
|
+
"publishConfig": {
|
|
108
|
+
"access": "public",
|
|
109
|
+
"registry": "https://registry.npmjs.org/"
|
|
110
|
+
}
|
|
111
|
+
}
|