From 032bde9ca39d56b3bdbe68c40791c39668802f06 Mon Sep 17 00:00:00 2001 From: Jotobot Date: Tue, 14 May 2024 22:09:21 +0200 Subject: [PATCH 1/9] Update and rename account.txt to account.dev.txt --- account.dev.txt | 119 ++++++++++++++++++++++++++++++++++++++++++++++++ account.txt | 0 2 files changed, 119 insertions(+) create mode 100644 account.dev.txt delete mode 100644 account.txt diff --git a/account.dev.txt b/account.dev.txt new file mode 100644 index 0000000000..7f19bd5fab --- /dev/null +++ b/account.dev.txt @@ -0,0 +1,119 @@ +[ + { + "key": "dbln", + "value": "%7B%2261557582662378%22%3A%22K52C6O5I%22%7D", + "domain": "facebook.com", + "path": "/login/device-based/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.207Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "datr", + "value": "zV1CZkeuVW7imS-fv6vOqjSl", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "sb", + "value": "zV1CZnC9Z_Or92of0jGba9d1", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "ps_n", + "value": "1", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "ps_l", + "value": "1", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "locale", + "value": "fr_FR", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "vpd", + "value": "v1%3B696x360x2", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "fr", + "value": "0Gd9b3X8scUkfnBny.AWXlj6lrWTBzoLEtew9n5ubKylE.BmQl3N..AAA.0.0.BmQ5bf.AWXcyxqkICs", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "c_user", + "value": "61557582662378", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "xs", + "value": "45%3ALZcqlkfD4drDFA%3A2%3A1715705568%3A-1%3A3139", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "m_page_voice", + "value": "61557582662378", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.216Z", + "lastAccessed": "2024-05-14T19:53:43.216Z" + }, + { + "key": "fbl_st", + "value": "101225167%3BT%3A28595126", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.217Z", + "lastAccessed": "2024-05-14T19:53:43.217Z" + }, + { + "key": "wl_cbv", + "value": "v2%3Bclient_version%3A2499%3Btimestamp%3A1715707691", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-14T19:53:43.217Z", + "lastAccessed": "2024-05-14T19:53:43.217Z" + } +]Enter diff --git a/account.txt b/account.txt deleted file mode 100644 index e69de29bb2..0000000000 From c840d7f777bdeb37918c9637f2d65cd1a5b59b63 Mon Sep 17 00:00:00 2001 From: Jotobot Date: Tue, 14 May 2024 22:11:39 +0200 Subject: [PATCH 2/9] Rename configCommands.json to configCommands.dev.json --- configCommands.json => configCommands.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename configCommands.json => configCommands.dev.json (99%) diff --git a/configCommands.json b/configCommands.dev.json similarity index 99% rename from configCommands.json rename to configCommands.dev.json index a237fd95df..3f9d496ec9 100644 --- a/configCommands.json +++ b/configCommands.dev.json @@ -29,4 +29,4 @@ "allow": true } } -} \ No newline at end of file +} From 777c76db551046197bbaeb08a3b7ce9c749f25b6 Mon Sep 17 00:00:00 2001 From: Jotobot Date: Tue, 14 May 2024 22:13:59 +0200 Subject: [PATCH 3/9] Update and rename config.json to config.dev.json --- config.dev.json | 30 ++++++++++ config.json | 145 ------------------------------------------------ 2 files changed, 30 insertions(+), 145 deletions(-) create mode 100644 config.dev.json delete mode 100644 config.json diff --git a/config.dev.json b/config.dev.json new file mode 100644 index 0000000000..581a1a3aa9 --- /dev/null +++ b/config.dev.json @@ -0,0 +1,30 @@ +{ + "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)", + "nickNameBot": "GoatBot", + "prefix": "$", + "adminOnly": { + "enable": false, + "ignoreCommand": [] + }, + "adminBot": [ + "100062859976905" + ], + "whiteListMode": { + "enable": false, + "whiteListIds": [], + "notes": "if you enable this feature, only the ids in the whiteListIds list can use the bot" + }, + "whiteListModeThread": { + "enable": false, diff --git a/config.json b/config.json deleted file mode 100644 index b9aebbbeea..0000000000 --- a/config.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "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)", - "nickNameBot": "GoatBot", - "prefix": "-", - "adminOnly": { - "enable": false, - "ignoreCommand": [] - }, - "adminBot": [], - "whiteListMode": { - "enable": false, - "whiteListIds": [], - "notes": "if you enable this feature, only the ids in the whiteListIds list can use the bot" - }, - "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" - }, - "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": "", - "clientId": "", - "clientSecret": "", - "refreshToken": "", - "apiKey": "" - }, - "gRecaptcha": { - "siteKey": "", - "secretKey": "" - } - }, - "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": false, - "timeInterval": 180, - "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: \"example1@gmail.com example2@gmail.com\" (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 " - } -} \ No newline at end of file From 3931b61d7abd6fbf2fa955dd6dca0c6f62034bc0 Mon Sep 17 00:00:00 2001 From: Jotobot Date: Tue, 14 May 2024 22:36:46 +0200 Subject: [PATCH 4/9] Update config.dev.json --- config.dev.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.dev.json b/config.dev.json index 581a1a3aa9..574048cd38 100644 --- a/config.dev.json +++ b/config.dev.json @@ -19,7 +19,7 @@ "ignoreCommand": [] }, "adminBot": [ - "100062859976905" + "100071764681942" ], "whiteListMode": { "enable": false, From c409f61552869014520cb4586af700b737cd4604 Mon Sep 17 00:00:00 2001 From: Jotobot Date: Fri, 17 May 2024 15:43:31 +0200 Subject: [PATCH 5/9] Update account.dev.txt --- account.dev.txt | 99 ++++++++++++++++++++++++------------------------- 1 file changed, 49 insertions(+), 50 deletions(-) diff --git a/account.dev.txt b/account.dev.txt index 7f19bd5fab..3644714b91 100644 --- a/account.dev.txt +++ b/account.dev.txt @@ -1,21 +1,12 @@ [ { "key": "dbln", - "value": "%7B%2261557582662378%22%3A%22K52C6O5I%22%7D", + "value": "%7B%2261557582662378%22%3A%22LHpEqC3e%22%7D", "domain": "facebook.com", "path": "/login/device-based/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.207Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" - }, - { - "key": "datr", - "value": "zV1CZkeuVW7imS-fv6vOqjSl", - "domain": "facebook.com", - "path": "/", - "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.367Z", + "lastAccessed": "2024-05-17T13:39:05.372Z" }, { "key": "sb", @@ -23,26 +14,17 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.372Z", + "lastAccessed": "2024-05-17T13:39:05.372Z" }, { - "key": "ps_n", - "value": "1", - "domain": "facebook.com", - "path": "/", - "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" - }, - { - "key": "ps_l", - "value": "1", + "key": "datr", + "value": "MN9DZlRuK6OGNOJidIsHUbTN", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.372Z", + "lastAccessed": "2024-05-17T13:39:05.372Z" }, { "key": "locale", @@ -50,26 +32,26 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.372Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" }, { - "key": "vpd", - "value": "v1%3B696x360x2", + "key": "m_pixel_ratio", + "value": "2", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" }, { "key": "fr", - "value": "0Gd9b3X8scUkfnBny.AWXlj6lrWTBzoLEtew9n5ubKylE.BmQl3N..AAA.0.0.BmQ5bf.AWXcyxqkICs", + "value": "0WUNGep7PtRYFaHKb.AWUFIz1fHSWd7gYk4Xs524iwT9c.BmQ98x..AAA.0.0.BmR147.AWXSxwofxUI", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" }, { "key": "c_user", @@ -77,17 +59,17 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" }, { "key": "xs", - "value": "45%3ALZcqlkfD4drDFA%3A2%3A1715705568%3A-1%3A3139", + "value": "48%3AopoNz-1D3mBylw%3A2%3A1715953211%3A-1%3A3139", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" }, { "key": "m_page_voice", @@ -95,25 +77,42 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.216Z", - "lastAccessed": "2024-05-14T19:53:43.216Z" + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" + }, + { + "key": "wd", + "value": "360x696", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" }, { "key": "fbl_st", - "value": "101225167%3BT%3A28595126", + "value": "101338677%3BT%3A28599218", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.217Z", - "lastAccessed": "2024-05-14T19:53:43.217Z" + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" }, { "key": "wl_cbv", - "value": "v2%3Bclient_version%3A2499%3Btimestamp%3A1715707691", + "value": "v2%3Bclient_version%3A2502%3Btimestamp%3A1715953219", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" + }, + { + "key": "vpd", + "value": "v1%3B696x360x2", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2024-05-14T19:53:43.217Z", - "lastAccessed": "2024-05-14T19:53:43.217Z" + "creation": "2024-05-17T13:39:05.373Z", + "lastAccessed": "2024-05-17T13:39:05.373Z" } -]Enter From 15d8fd84b3a08d8bfae89215a5e41d6578139b2a Mon Sep 17 00:00:00 2001 From: Jotobot Date: Fri, 17 May 2024 15:55:22 +0200 Subject: [PATCH 6/9] Update config.dev.json --- config.dev.json | 117 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/config.dev.json b/config.dev.json index 574048cd38..ba31a89d38 100644 --- a/config.dev.json +++ b/config.dev.json @@ -28,3 +28,120 @@ }, "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" + }, + "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": "janvierakonkwa0@gmail.com", + "clientId": "512493484190-0652j3rbcl5ioaaj3pqh3e474nrh6fq9.apps.googleusercontent.com", + "clientSecret": "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", + "refreshToken": "1//04ezLirpq6yt4CgYIARAAGAQSNwF-L9IrI5e4q5K-j7VLY1pVm_KWOZdc7n-Oq_boV4QSdQwjVFDsG9oKTXBycTocO2v8PD-PbEQ", + "apiKey": "" + }, + "gRecaptcha": { + "siteKey": "6LdxzrYpAAAAAE4jeZCQvj8-0DC05G_vlnxMPtLQ", + "secretKey": "6LdxzrYpAAAAAOaCZnH7mtGW94j96C0K9DoA9Ilv " + } + }, + "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": false, + "timeInterval": 180, + "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": true, + "emailGetNoti": "janvierakonkwa0@gmail.com", + "note": "Bot will use gmailAccount to send email to emailGetNoti, can send notifications to many email, separate by comma or space, example: \"example1@gmail.com example2@gmail.com\" (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 " + } +} From c3aa4547b35e99ac9ad732a550f9c7327b56bcf8 Mon Sep 17 00:00:00 2001 From: Jotobot Date: Fri, 17 May 2024 15:57:21 +0200 Subject: [PATCH 7/9] Update config.dev.json From c869ea91b1aeae1858192b5581b0257691ab5a42 Mon Sep 17 00:00:00 2001 From: Jotobot Date: Fri, 17 May 2024 16:31:48 +0200 Subject: [PATCH 8/9] Update config.dev.json --- config.dev.json | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/config.dev.json b/config.dev.json index ba31a89d38..4d4e9143e0 100644 --- a/config.dev.json +++ b/config.dev.json @@ -1,19 +1,23 @@ { + "lianeAPI": { + "title": "🎀 Jot Bot", + "titleFont": "bold", + "contentFont": "fancy" + }, "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", + "userAgent2": "Mozilla/5.0 (Linux; Android 12; M2102J20SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36", + "userAgent": "Meta Portal", "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)", - "nickNameBot": "GoatBot", - "prefix": "$", "adminOnly": { "enable": false, "ignoreCommand": [] @@ -24,14 +28,10 @@ "whiteListMode": { "enable": false, "whiteListIds": [], - "notes": "if you enable this feature, only the ids in the whiteListIds list can use the bot" - }, - "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" + "notes": "if you enable this feature, only the ids in the whiteListIds section can use the bot" }, + "nickNameBot": "Mocha | 🧋✨", + "prefix": "$", "database": { "type": "sqlite", "uriMongodb": "", @@ -42,15 +42,15 @@ "timeZone": "Asia/Ho_Chi_Minh", "credentials": { "gmailAccount": { - "email": "janvierakonkwa0@gmail.com", - "clientId": "512493484190-0652j3rbcl5ioaaj3pqh3e474nrh6fq9.apps.googleusercontent.com", - "clientSecret": "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", - "refreshToken": "1//04ezLirpq6yt4CgYIARAAGAQSNwF-L9IrI5e4q5K-j7VLY1pVm_KWOZdc7n-Oq_boV4QSdQwjVFDsG9oKTXBycTocO2v8PD-PbEQ", + "email": "kramn1205@gmail.com", + "clientId": "407168939339-ni7uvp8054bpnht4280n6d3no4qrf3mv.apps.googleusercontent.com", + "clientSecret": "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", + "refreshToken": "1//041Aj0DBzlyxuCgYIARAAGAQSNwF-L9IrSJFfXahDmIC5CaNNthQwg0yT8ZrFaUUofZBR13qsh-nNBLi7_4LZMlZ00F8AiWo6Moo", "apiKey": "" }, "gRecaptcha": { - "siteKey": "6LdxzrYpAAAAAE4jeZCQvj8-0DC05G_vlnxMPtLQ", - "secretKey": "6LdxzrYpAAAAAOaCZnH7mtGW94j96C0K9DoA9Ilv " + "siteKey": "6LdtgYMoAAAAABS1V6_RlEsUXf7dNLIzbc4EPhbt", + "secretKey": "6LdtgYMoAAAAAKXtH5f06qZBq28VXXqOb6rOSGQ5" } }, "dashBoard": { @@ -96,8 +96,8 @@ "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": true, - "emailGetNoti": "janvierakonkwa0@gmail.com", + "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: \"example1@gmail.com example2@gmail.com\" (without backslash)" }, "telegram": { @@ -144,4 +144,4 @@ "autoReconnect": false, "notes": "Document here: https://github.com/ntkhang03/fb-chat-api/blob/master/DOCS.md#apisetoptionsoptions " } -} + From ab3af87aad54d4ee788eb0896e64438ebe924b36 Mon Sep 17 00:00:00 2001 From: Jotobot Date: Fri, 17 May 2024 16:48:28 +0200 Subject: [PATCH 9/9] Update config.dev.json --- config.dev.json | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/config.dev.json b/config.dev.json index 4d4e9143e0..fd0f18b7da 100644 --- a/config.dev.json +++ b/config.dev.json @@ -1,23 +1,19 @@ { - "lianeAPI": { - "title": "🎀 Jot Bot", - "titleFont": "bold", - "contentFont": "fancy" - }, "facebookAccount": { "email": "", "password": "", "2FASecret": "", "i_user": "", "proxy": null, - "userAgent2": "Mozilla/5.0 (Linux; Android 12; M2102J20SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36", - "userAgent": "Meta Portal", + "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)", + "nickNameBot": "GoatBot", + "prefix": "$", "adminOnly": { "enable": false, "ignoreCommand": [] @@ -28,10 +24,14 @@ "whiteListMode": { "enable": false, "whiteListIds": [], - "notes": "if you enable this feature, only the ids in the whiteListIds section can use the bot" + "notes": "if you enable this feature, only the ids in the whiteListIds list can use the bot" + }, + "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" }, - "nickNameBot": "Mocha | 🧋✨", - "prefix": "$", "database": { "type": "sqlite", "uriMongodb": "", @@ -42,21 +42,21 @@ "timeZone": "Asia/Ho_Chi_Minh", "credentials": { "gmailAccount": { - "email": "kramn1205@gmail.com", - "clientId": "407168939339-ni7uvp8054bpnht4280n6d3no4qrf3mv.apps.googleusercontent.com", - "clientSecret": "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", - "refreshToken": "1//041Aj0DBzlyxuCgYIARAAGAQSNwF-L9IrSJFfXahDmIC5CaNNthQwg0yT8ZrFaUUofZBR13qsh-nNBLi7_4LZMlZ00F8AiWo6Moo", + "email": "janvierakonkwa0@gmail.com", + "clientId": "512493484190-0652j3rbcl5ioaaj3pqh3e474nrh6fq9.apps.googleusercontent.com", + "clientSecret": "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", + "refreshToken": "1//04ezLirpq6yt4CgYIARAAGAQSNwF-L9IrI5e4q5K-j7VLY1pVm_KWOZdc7n-Oq_boV4QSdQwjVFDsG9oKTXBycTocO2v8PD-PbEQ", "apiKey": "" }, "gRecaptcha": { - "siteKey": "6LdtgYMoAAAAABS1V6_RlEsUXf7dNLIzbc4EPhbt", - "secretKey": "6LdtgYMoAAAAAKXtH5f06qZBq28VXXqOb6rOSGQ5" + "siteKey": "6LdxzrYpAAAAAE4jeZCQvj8-0DC05G_vlnxMPtLQ", + "secretKey": "6LdxzrYpAAAAAOaCZnH7mtGW94j96C0K9DoA9Ilv " } }, "dashBoard": { "enable": true, "expireVerifyCode": 300000, - "port": 3001 + "port": 4000 }, "serverUptime": { "enable": false, @@ -96,8 +96,8 @@ "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": "", + "enable": true, + "emailGetNoti": "janvierakonkwa0@gmail.com", "note": "Bot will use gmailAccount to send email to emailGetNoti, can send notifications to many email, separate by comma or space, example: \"example1@gmail.com example2@gmail.com\" (without backslash)" }, "telegram": {