Skip to content

Commit

Permalink
v3.15.1
Browse files Browse the repository at this point in the history
gamename#tagline and creationdate capture added
  • Loading branch information
LIL-JABA committed Jul 31, 2023
1 parent 4508d81 commit d9c7449
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 339 deletions.
22 changes: 16 additions & 6 deletions src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ def main(self) -> None:
| {account.logpass} |
ban until: {account.banuntil}
{account.gamename}#{account.tagline}
region: {account.region} country: {account.country}
rank: {account.rank} lvl: {account.lvl}
vp: {account.vp} rp: {account.rp}
last game: {account.lastplayed}''')
last game: {account.lastplayed}
https://tracker.gg/valorant/profile/riot/{account.gamename.replace(' ','%20')}%23{account.tagline}/overview
''')
if self.checkskins:
print('skins:')
print('\n'.join(account.skins))
Expand Down Expand Up @@ -357,11 +360,13 @@ def checker(self, username, password):
file.write(f'''
╔═════════════════════════════════════════════════════════════╗
║ | {account.logpass} |{space*(49-len(f'| {account.logpass} |'))}
Ban Until: {banuntil}{space*(61-len(f'Ban Until: {banuntil}'))}
Banned until {banuntil}{space*(61-len(f' Banned until {banuntil}'))}
║ ║
║ Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}{space*(61-len(f' Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}'))}
║ Rank: {rank} | Last Played: {lastplayed}{space*(61-len(f' Rank: {rank} | Last Played: {lastplayed}'))}
║ Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}{space*(61-len(f' Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}'))}
║ Creation date: {account.registerdate}{space*(61-len(f' Creation date: {account.registerdate}'))}
║ Gamename: {account.gamename}#{account.tagline}{space*(61-len(f' Gamename: {account.gamename}#{account.tagline}'))}
╠═════════════════════════════════════════════════════════════╣
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
Expand All @@ -384,6 +389,8 @@ def checker(self, username, password):
║ Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}{space*(61-len(f' Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}'))}
║ Rank: {rank} | Last Played: {lastplayed}{space*(61-len(f' Rank: {rank} | Last Played: {lastplayed}'))}
║ Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}{space*(61-len(f' Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}'))}
║ Creation date: {account.registerdate}{space*(61-len(f' Creation date: {account.registerdate}'))}
║ Gamename: {account.gamename}#{account.tagline}{space*(61-len(f' Gamename: {account.gamename}#{account.tagline}'))}
╠═════════════════════════════════════════════════════════════╣
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
Expand All @@ -392,10 +399,10 @@ def checker(self, username, password):
if banuntil == None:
self.valid += 1
self.validlist.append(acc)
bantext = ''
bantext = ' '
if rank != 'N/A' and reg != 'N/A':
if banuntil != None:
bantext = f'\n|ban until------> {banuntil}'
bantext = f' Banned until {banuntil}'
if not exists(f'{self.outpath}/regions/'):
os.mkdir(f'{self.outpath}/regions/')
if not exists(f'{self.outpath}/regions/{reg}/'):
Expand All @@ -404,11 +411,13 @@ def checker(self, username, password):
file.write(f'''
╔═════════════════════════════════════════════════════════════╗
║ | {account.logpass} |{space*(49-len(f'| {account.logpass} |'))}
{bantext}{space*(60-len(bantext))}
{bantext}{space*(61-len(bantext))}
║ ║
║ Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}{space*(61-len(f' Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}'))}
║ Rank: {rank} | Last Played: {lastplayed}{space*(61-len(f' Rank: {rank} | Last Played: {lastplayed}'))}
║ Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}{space*(61-len(f' Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}'))}
║ Creation date: {account.registerdate}{space*(61-len(f' Creation date: {account.registerdate}'))}
║ Gamename: {account.gamename}#{account.tagline}{space*(61-len(f' Gamename: {account.gamename}#{account.tagline}'))}
╠═════════════════════════════════════════════════════════════╣
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
Expand Down Expand Up @@ -439,11 +448,12 @@ def checker(self, username, password):
║ Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}{space*(61-len(f' Full Access: {unverifmail} | Level: {lvl} | Region: {reg} , {country}'))}
║ Rank: {rank} | Last Played: {lastplayed}{space*(61-len(f' Rank: {rank} | Last Played: {lastplayed}'))}
║ Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}{space*(61-len(f' Valorant Points: {vp} | Radianite: {rp} | Skins: {skinscount}'))}
║ Creation date: {account.registerdate}{space*(61-len(f' Creation date: {account.registerdate}'))}
║ Gamename: {account.gamename}#{account.tagline}{space*(61-len(f' Gamename: {account.gamename}#{account.tagline}'))}
╠═════════════════════════════════════════════════════════════╣
{skinsformatted}
╚═════════════════════════════════════════════════════════════╝
''')

except Exception as e:
with open(f'{self.parentpath}/log.txt', 'a', errors='replace', encoding='utf-8') as f:
f.write(
Expand Down
7 changes: 7 additions & 0 deletions src/codeparts/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ def auth(self, logpass: str = None, username=None, password=None, proxy=None) ->
data = r.json()
# print(data)
# input()
gamename = data['acct']['game_name']
tagline = data['acct']['tag_line']
registerdate = data['acct']['created_at']
registerdatepatched = pandas.to_datetime(int(registerdate), unit='ms')
puuid = data['sub']
try:
#input(data)
Expand Down Expand Up @@ -178,6 +182,9 @@ def auth(self, logpass: str = None, username=None, password=None, proxy=None) ->
account.puuid = puuid
account.unverifiedmail = mailverif
account.banuntil = banuntil
account.gamename = gamename
account.tagline = tagline
account.registerdate = registerdatepatched
return account
except Exception as e:
account.errmsg = str(traceback.format_exc())
Expand Down
3 changes: 1 addition & 2 deletions src/codeparts/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ def lastplayed(self, account):
if data2 == []:
account.lastplayed = 'long time ago'
return
for x in data2:
data3 = x['GameStartTime']
data3 = data2[0]['GameStartTime']
unix_time1 = data3
unix_time1 = int(unix_time1)
result_s2 = pandas.to_datetime(unix_time1, unit='ms')
Expand Down
Loading

0 comments on commit d9c7449

Please sign in to comment.