From 3bebee9c137789afbcff52fb70495e50790ce257 Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 24 May 2022 22:38:23 +0200 Subject: [PATCH] AS WELL --- V4.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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,