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'))
示例#2
0
 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()
示例#3
0
 def ReadSoldiersDataFromDatabase(self) -> Dict[int, SoldierData]:
     response = S3.read('stats.txt')
     return json.loads(response['Body'].read().decode('utf-8'))
示例#4
0
 def ReadSoldiersIdsFromDatabase(self) -> Dict[str, List[str]]:
     response = S3.read('spying-ids.txt')
     return json.loads(response['Body'].read().decode('utf-8'))