File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,14 @@ async def main():
54
54
remaining = rate_data ['resources' ]['core' ]['remaining' ]
55
55
reset_time = datetime .fromtimestamp (rate_data ['resources' ]['core' ]['reset' ])
56
56
reset_in = humanize .naturaltime (reset_time )
57
- print (f"Rate limit remaining: { remaining } " )
58
- print (f"Rate limit resets { reset_in } " )
59
57
if remaining < 100 :
60
- print ("[red ]Warning: Rate limit is low![/red ]" )
58
+ print (f"[yellow ]Warning: Rate limit is low! ( { remaining } remaining, full in { reset_in } )[/yellow ]" )
61
59
if remaining < 10 :
62
60
print ("[red]Aborting due to very low rate limit[/red]" )
63
61
return
64
62
else :
65
- print (f"[green]Rate limit is sufficient ({ remaining } remaining, full in { reset_in } )[/green]" )
63
+ print (f"Rate limit remaining: { remaining } " )
64
+ print (f"Rate limit resets { reset_in } " )
66
65
else :
67
66
print (f"[red]Error checking rate limit: { response .status } [/red]" )
68
67
tasks = []
You can’t perform that action at this time.
0 commit comments