mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
hmm
This commit is contained in:
parent
78eb1a28e9
commit
f9bd97cd9d
1 changed files with 2 additions and 1 deletions
|
|
@ -29,10 +29,11 @@ class RateLimiter:
|
|||
# 500 requests per day
|
||||
self.daily_rate = Rate(500, Duration.DAY)
|
||||
|
||||
self.limiter = Limiter(
|
||||
self.limiter = Limiter([
|
||||
self.minute_rate,
|
||||
self.hourly_rate,
|
||||
self.daily_rate
|
||||
]
|
||||
)
|
||||
|
||||
async def acquire(self, userid: Union[int, str]) -> bool:
|
||||
|
|
|
|||
Loading…
Reference in a new issue