def __init__(self, bot): self.bot = bot self.battle = "" response = S3.read('soldiers.txt') self.soldiers = jsonpickle.decode(response['Body'].read().decode('utf-8'), keys=True) response2 = S3.read('prawda.txt') self.opened = json.loads(response2['Body'].read().decode('utf-8'))
def __init__(self, bot): self.bot = bot self.punktyTGS = {} response = S3.read('punkty.txt') self.punktyTGS = json.loads(response['Body'].read().decode('utf-8')) random.seed()
def ReadSoldiersDataFromDatabase(self) -> Dict[int, SoldierData]: response = S3.read('stats.txt') return json.loads(response['Body'].read().decode('utf-8'))
def ReadSoldiersIdsFromDatabase(self) -> Dict[str, List[str]]: response = S3.read('spying-ids.txt') return json.loads(response['Body'].read().decode('utf-8'))