This commit is contained in:
piair 2022-06-22 20:22:52 +02:00
parent 05c9d505eb
commit cbdc6c9935

10
main.py
View File

@ -60,7 +60,7 @@ def setup_comptes():
mdp = input(t["mdp"]) mdp = input(t["mdp"])
lc.append(f"{compte},{mdp}") lc.append(f"{compte},{mdp}")
for i in range(5): for i in range(5):
if enquiries.confirm(t["next"], default = True): if confirm(t["next"], default = True):
compte = input(t["compte"]) compte = input(t["compte"])
mdp = input(t["mdp"]) mdp = input(t["mdp"])
lc.append(f"{compte},{mdp}\n") lc.append(f"{compte},{mdp}\n")
@ -96,12 +96,12 @@ def setup_settings():
sql() sql()
def general(): def general():
if enquiries.confirm(t["fidelity"]): if confirm(t["fidelity"]):
lien = input(t["lien"]) lien = input(t["lien"])
edit_config(7,lien) edit_config(7,lien)
def discord(): def discord():
enabled = enquiries.confirm(t["discorde"], default = True) enabled = confirm(t["discorde"], default = True)
if enabled : if enabled :
edit_config(13, True) edit_config(13, True)
w1 = input(t["w1"]) w1 = input(t["w1"])
@ -110,7 +110,7 @@ def discord():
edit_config(15,w2) edit_config(15,w2)
def sql() : def sql() :
enabled = enquiries.confirm(t["msqle"], default = False) enabled = confirm(t["msqle"], default = False)
if enabled : if enabled :
edit_config(25, True) edit_config(25, True)
lien = input(t["msqll"]) lien = input(t["msqll"])
@ -123,7 +123,7 @@ def sql() :
edit_config(29,pwd) edit_config(29,pwd)
def proxy() : def proxy() :
enabled = enquiries.confirm(t["proxye"], default = False) enabled = confirm(t["proxye"], default = False)
if enabled : if enabled :
edit_config(19, True) edit_config(19, True)
lien = input(t["proxyl"]) lien = input(t["proxyl"])