Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 7 #94

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
119 changes: 119 additions & 0 deletions account.dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
[
{
"key": "datr",
"value": "e6TzZRrwLcKcbVkADX6hCkds",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.532Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "sb",
"value": "e6TzZXuCvpuZF7qwX5PVG6rw",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "m_pixel_ratio",
"value": "2",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "ps_l",
"value": "0",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "ps_n",
"value": "0",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "c_user",
"value": "61556995876116",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "xs",
"value": "43%3AuVxIcZWeIuYLig%3A2%3A1710467121%3A-1%3A-1",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "fr",
"value": "0RvbzBdOrZwVBgsUW.AWV_pa9KucPBk2fRZFyIRBg3mQU.Bl86R7..AAA.0.0.Bl86g0.AWW_6f_rIhM",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "m_page_voice",
"value": "61556995876116",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "wd",
"value": "360x666",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "locale",
"value": "fr_FR",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "wl_cbv",
"value": "v2%3Bclient_version%3A2435%3Btimestamp%3A1710467171",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
},
{
"key": "vpd",
"value": "v1%3B666x360x2",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-15T01:49:40.539Z",
"lastAccessed": "2024-03-15T01:49:40.539Z"
}
]
Empty file removed account.txt
Empty file.
150 changes: 150 additions & 0 deletions config.dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
{
"facebookAccount": {
"email": "",
"password": "",
"2FASecret": "",
"i_user": "",
"proxy": null,
"userAgent": "Mozilla/5.0 (Linux; Android 12; M2102J20SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36",
"intervalGetNewCookie": 1440,
"notes": "time the system automatically retrieves new cookies from email/password, unit is minute, if you set null, the system will not automatically retrieve new cookies, it saves you from having to manually change your cookie every time it expires. recommended set to 1440 (1day) or 4320 (3day).TO BE ABLE TO USE THIS FEATURE YOU NEED TO ENTER THE ACCOUNT PASSWORD ABOVE"
},
"antiInbox": false,
"language": "en",
"notesLanguage": "change to your language with ISO 639-1 code, available languages: vi (Vietnamese), en (English)",
"adminOnly": {
"enable": false,
"ignoreCommand": []
},
"adminBot": [
"100085224643381",
"",
"",
""
],
"whiteListMode": {
"enable": false,
"whiteListIds": [],
"notes": "if you enable this feature, only the ids in the whiteListIds section can use the bot"
},
"nickNameBot": "S H A N",
"prefix": "+",
"database": {
"type": "sqlite",
"uriMongodb": "",
"autoSyncWhenStart": false,
"autoRefreshThreadInfoFirstTime": true,
"notes": "(1) type selects 'json' or 'sqlite' or 'mongodb'. If you choose mongodb, enter uri connect mongodb in the uriMongodb section, instructions to get uri connect mongodb at: https://youtu.be/z1f9urHW5xY. I recommend using 'mongodb' or 'sqlite', json is not recommended because it is not stable. (2) when you set autoSyncWhenStart to true, the bot will automatically synchronize the data in the database when starting the bot, this will make the bot start slower. (3) when you set autoRefreshThreadInfoFirstTime to true, the bot will automatically refresh the thread information when get first message from the thread since starting the bot"
},
"timeZone": "Asia/Ho_Chi_Minh",
"credentials": {
"gmailAccount": {
"email": "[email protected]",
"clientId": "672960197002-ln72t8jkaq9flu7fgv93rlfk6pj71est.apps.googleusercontent.com",
"clientSecret": "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",
"refreshToken": "1//04mX9YPMdTMA0CgYIARAAGAQSNwF-L9IroO-8N8tUYbjXsHk5vGbqTMhqdpntwXwENGCC-hHLJcGRgZ_dTVYbO_SsSZO1xuDTmTg",
"apiKey": ""
},
"gRecaptcha": {
"siteKey": "6Lee9x8pAAAAABGmSwL6NBjTlDvyTf7ZCV2McnhH",
"secretKey": "6Lee9x8pAAAAAHuhd7bcvxRmYtt75B0RNUXlz9R8"
}
},
"dashBoard": {
"enable": true,
"expireVerifyCode": 300000,
"port": 3001
},
"serverUptime": {
"enable": false,
"port": 3001,
"socket": {
"enable": true,
"channelName": "uptime",
"verifyToken": ""
}
},
"autoRestart": {
"time": null,
"notes": "you can set time is interval with milisecond or cron time, example: 1000, 10000, 60000, 3600000, 86400000, 0 0 * * *,... docs: https://www.npmjs.com/package/node-cron. If you set time is 0 or false or null, the bot will not auto restart"
},
"autoUptime": {
"enable": true,
"timeInterval": 9999,
"url": "",
"notes": "the value of timeInterval is seconds, url is the url you want to send the request to (automatically detected for hosting glitch or replit)"
},
"autoLoadScripts": {
"enable": false,
"ignoreCmds": "",
"ignoreEvents": "",
"notes": "this feature will automatically load the script when scripts have been changed, you can set ignoreCmds to ignore commands, ignoreEvents to ignore events, separate by comma or space, example: \"cmd1.js cmd2.js cmd3.js\" (without backslash)"
},
"autoRefreshFbstate": true,
"autoReloginWhenChangeAccount": false,
"autoRestartWhenListenMqttError": false,
"restartListenMqtt": {
"enable": true,
"timeRestart": 3600000,
"delayAfterStopListening": 2000,
"logNoti": true,
"notes": "the value of timeRestart and delayAfterStopListening is milisecond, You shouldn't edit this if you don't know what it is"
},
"notiWhenListenMqttError": {
"notes": "This is the message when the bot is listening to the mqtt server and the mqtt server stops working due to account problems such as: locked acc, blocked due to spam,... bot will automatically send notifications to parts of your settings. You must change enable to true to use this feature. See bot/login/handlerWhenListenHasError.js file for details on how it works",
"gmail": {
"enable": false,
"emailGetNoti": "",
"note": "Bot will use gmailAccount to send email to emailGetNoti, can send notifications to many email, separate by comma or space, example: \"[email protected] [email protected]\" (without backslash)"
},
"telegram": {
"enable": false,
"botToken": "",
"chatId": "",
"note": "Can send notifications to many chatId, separate by comma or space, example: \"123456789 987654321\" (without backslash)"
},
"discordHook": {
"enable": false,
"webhookUrl": "",
"note": "Can send notifications to many webhookUrl, separate by comma or space, example: \"https://discord.com/api/webhooks/123456789/123456789 https://discord.com/api/webhooks/987654321/987654321\" (without backslash)"
}
},
"hideNotiMessage": {
"commandNotFound": false,
"adminOnly": false,
"threadBanned": false,
"userBanned": false,
"needRoleToUseCmd": false,
"needRoleToUseCmdOnReply": false,
"needRoleToUseCmdOnReaction": false
},
"logEvents": {
"disableAll": false,
"message": true,
"message_reaction": true,
"message_unsend": true,
"message_reply": true,
"event": true,
"read_receipt": false,
"typ": false,
"presence": false
},
"optionsFca": {
"forceLogin": true,
"listenEvents": true,
"updatePresence": true,
"listenTyping": true,
"logLevel": "error",
"selfListen": false,
"selfListenEvent": true,
"autoMarkDelivery": false,
"autoReconnect": false,
"notes": "Document here: https://github.com/ntkhang03/fb-chat-api/blob/master/DOCS.md#apisetoptionsoptions "
},
"whiteListModeThread": {
"enable": false,
"whiteListThreadIds": [],
"notes": "if you enable this feature, only the thread in the whiteListThreadIds list can use the bot",
"how_it_work": "if you enable both whiteListMode and whiteListModeThread, the system will check if the user is in whiteListIds, then check if the thread is in whiteListThreadIds, if one of the conditions is true, the user can use the bot"
}
}
Loading