2024-02-27 01:34:56 +01:00
|
|
|
import json
|
|
|
|
|
2024-02-27 00:33:17 +01:00
|
|
|
from modules.Classes.UserCredentials import UserCredentials
|
|
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
def __init__(self, args):
|
|
|
|
self.args = args
|
2024-02-27 01:34:56 +01:00
|
|
|
self.UserCredentials = UserCredentials()
|
|
|
|
|
|
|
|
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
|
|
|
configs = json.load(inFile)
|
|
|
|
for i in configs[str(args.config)]["accounts"]:
|
|
|
|
d = configs[str(args.config)]["accounts"][i]
|
|
|
|
self.UserCredentials.add(d["mail"], d["pwd"], d["2fa"])
|