AS WELL
This commit is contained in:
parent
fa8d27db0f
commit
3bebee9c13
12
V4.py
12
V4.py
|
@ -93,13 +93,10 @@ g = open(MotPath, "r", encoding="utf-8")
|
|||
Liste_de_mot = list(g.readline().split(","))
|
||||
g.close()
|
||||
|
||||
|
||||
webhookFailure = Webhook.from_url(ErrorLink, adapter=RequestsWebhookAdapter())
|
||||
|
||||
if sql_enabled :
|
||||
mycursor = setup_MySQL()
|
||||
if discord_enabled:
|
||||
webhookSuccess = Webhook.from_url(SuccessLink, adapter=RequestsWebhookAdapter())
|
||||
webhookFailure = Webhook.from_url(ErrorLink, adapter=RequestsWebhookAdapter())
|
||||
|
||||
|
||||
def setup_proxy(ip, port) :
|
||||
PROXY = f"{ip}:{port}"
|
||||
|
@ -109,6 +106,11 @@ def setup_proxy(ip, port) :
|
|||
"proxyType": "MANUAL",
|
||||
}
|
||||
|
||||
|
||||
if sql_enabled :
|
||||
mycursor = setup_MySQL()
|
||||
|
||||
|
||||
def setup_MySQL():
|
||||
mydb = mysql.connector.connect(
|
||||
host=sql_host,
|
||||
|
|
Loading…
Reference in New Issue