Skip to content

Commit

Permalink
v3.5.6
Browse files Browse the repository at this point in the history
fixed error with ban checker
  • Loading branch information
LIL-JABA committed Sep 4, 2022
1 parent 377f51c commit 7f42302
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self,settings:list,proxylist) -> None:
import discord_webhook
except ModuleNotFoundError:
if self.webhook != '':
print('use "pip install discord_webhook" to use your webhook')
print('"pip install discord_webhook" to use your webhook')
input('press enter to continue without using the webhook')
self.webhook=''
else:
Expand Down Expand Up @@ -137,6 +137,8 @@ def main(self,accounts,count):
with open (f'{self.parentpath}/output/riot_limits.txt', 'a', encoding='UTF-8') as file:
file.write(f'\n{account}')
break
elif token==6:
continue
elif token==3:
pass
elif token==0:
Expand Down Expand Up @@ -289,7 +291,7 @@ def main(self,accounts,count):
###account###
''')
if self.webhook != '' and reg != 'N/A' and int(lvl)>=20: #enter your requirements for sending a webhook (...!= 'N/A' HERE)
if self.webhook != '' and reg != 'N/A' and skins != '': #enter your requirements for sending a webhook here
from discord_webhook import DiscordWebhook, DiscordEmbed
dcwebhook = DiscordWebhook(url=self.webhook)
embed = DiscordEmbed(title='New valid account', color='34eb43')
Expand Down
10 changes: 6 additions & 4 deletions src/codeparts/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ def auth(self,logpass=None,username=None,password=None):
data2=data['ban']
#input(data2)
data3 = data2['restrictions']
for x in data3:
typebanned = x['type']
#input(data3)
typebanned = data3[0]['type']
#input(typebanned)
if typebanned == "PERMANENT_BAN" or typebanned=='PERMA_BAN':
#input(True)
return 4,4,4,4,None
elif typebanned=='TIME_BAN' or typebanned=='LEGACY_BAN':
expire=x['dat']['expirationMillis']
expire=data3[0]['dat']['expirationMillis']
expirepatched = pandas.to_datetime(int(expire),unit='ms')
#input(expire)
banuntil=expirepatched
Expand All @@ -111,7 +113,7 @@ def auth(self,logpass=None,username=None,password=None):
pass
except Exception as e:
#print(e)
#input()
#input(e)
banuntil=None
pass
try:
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class program():
def __init__(self) -> None:
self.count=0
self.checked=0
self.version='3.5.5'
self.version='3.5.6'
self.riotlimitinarow=0
try:
self.lastver=requests.get('https://lil-jaba.github.io/valchecker/src/system/lastver.html').text.replace(' ','').replace('\n','')
Expand Down
2 changes: 1 addition & 1 deletion src/system/lastver.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.5.5
3.5.6

0 comments on commit 7f42302

Please sign in to comment.