diff --git a/V4.py b/V4.py index e9318d8..e4bfffa 100755 --- a/V4.py +++ b/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,