forked from ntkhang03/Goat-Bot-V2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
145 lines (145 loc) · 5.82 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"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/Manila",
"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: \"[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 "
}
}