-
Notifications
You must be signed in to change notification settings - Fork 2
/
Config.py
56 lines (43 loc) · 1.18 KB
/
Config.py
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
#Config and plenty of constants
class Config:
keepAlive = True
sendReceipts = False
#waitForReceipt = False
session_opts = {'session.type': 'file', 'session.cookie_expires': True,'session.file_dir': 'beaker\\file_dir','session.data_dir': 'beaker\\data_dir'}
#CONNECTION
conRetry_interval= 10 #Retry every 10 seconds
conRetry_maxRetry = 12 #Retry 12 times
#CallbackDBI
CallbackDBI_queryTimeout = 3
#Sender
#Sender_sendtimeout= 90 #1.5 minutes
Sender_resendInterval = 5#150
#outbox
outbox_retryInterval = 5#90 #1.5 minutes
#DBI
DBI_getCursorTimeout = 20 #20 seconds is a looot
#mysql connection
mysql_host= "localhost"
mysql_user= "root"
mysql_password= ""
mysql_database= "webwhatsapp"
class Constants:
#DBI
DBI_FETCHALL = 1
DBI_FETCHONE = 2
DBI_ROWCOUT = 3
#INBOX
INBOX_UNSEEN = 1
INBOX_SEEN = 2
#OUTBOX
OUTBOX_PENDING = 1
OUTBOX_SENDING = 2
OUTBOX_SENT = 3
#AUTH
AUTHSTATUS_IDLE = 1
AUTHSTATUS_TRYING = 2
AUTHSTATUS_LOGGEDIN = 3
#INSTANCESTATUS (Notes the status of the process in the databases. Mostly to keep track of instances
INSTANCESTATUS_INITED = 0
INSTANCESTATUS_RUNNING = 1
INSTANCESTATUS_WRAPPEDUP = 2