This commit is contained in:
piair 2022-05-24 22:38:23 +02:00
parent fa8d27db0f
commit 3bebee9c13
1 changed files with 7 additions and 5 deletions

12
V4.py
View File

@ -93,13 +93,10 @@ g = open(MotPath, "r", encoding="utf-8")
Liste_de_mot = list(g.readline().split(",")) Liste_de_mot = list(g.readline().split(","))
g.close() g.close()
webhookFailure = Webhook.from_url(ErrorLink, adapter=RequestsWebhookAdapter())
if sql_enabled :
mycursor = setup_MySQL()
if discord_enabled: if discord_enabled:
webhookSuccess = Webhook.from_url(SuccessLink, adapter=RequestsWebhookAdapter()) webhookSuccess = Webhook.from_url(SuccessLink, adapter=RequestsWebhookAdapter())
webhookFailure = Webhook.from_url(ErrorLink, adapter=RequestsWebhookAdapter())
def setup_proxy(ip, port) : def setup_proxy(ip, port) :
PROXY = f"{ip}:{port}" PROXY = f"{ip}:{port}"
@ -109,6 +106,11 @@ def setup_proxy(ip, port) :
"proxyType": "MANUAL", "proxyType": "MANUAL",
} }
if sql_enabled :
mycursor = setup_MySQL()
def setup_MySQL(): def setup_MySQL():
mydb = mysql.connector.connect( mydb = mysql.connector.connect(
host=sql_host, host=sql_host,