Skip to content

Commit

Permalink
Update managers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saifalisew1508 authored Aug 5, 2023
1 parent e430edc commit e1d8793
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions MissCutie/Handlers/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@

class AntiSpam:
def __init__(self):
self.whitelist = (
(DEV_USERS or []).union(INSPECTOR or []).union(REQUESTER or [])
)
self.whitelist = set()

if DEV_USERS:
self.whitelist.update(DEV_USERS)
if INSPECTOR:
self.whitelist.update(INSPECTOR)
if REQUESTER:
self.whitelist.update(REQUESTER)
# Values are HIGHLY experimental, its recommended you pay attention to our commits as we will be adjusting the values over time with what suits best.
Duration.CUSTOM = 15 # Custom duration, 15 seconds
self.sec_limit = RequestRate(6, Duration.CUSTOM) # 6 / Per 15 Seconds
Expand Down

0 comments on commit e1d8793

Please sign in to comment.