Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/charset-normalizer-3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgojoof6eyes authored Nov 26, 2024
2 parents e08f94c + 55ca9ce commit 51d277e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions Powers/supports.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,25 @@ def get_support_staff(want="all"):
dev, sudo, whitelist, dev_level, sudo_level, all
"""
support = SUPPORTS()
devs = SUPPORT_USERS["Dev"] or support.get_particular_support("dev")
sudo = SUPPORT_USERS["Sudo"] or support.get_particular_support("sudo")
whitelist = SUPPORT_USERS["White"] or support.get_particular_support("whitelist")
if want in ["dev", "dev_level"]:
devs = SUPPORT_USERS["Dev"] or support.get_particular_support("dev")
wanted = list(devs)
if want == "dev_level":
wanted.append(OWNER_ID)
elif want == "sudo":
sudo = SUPPORT_USERS["Sudo"] or support.get_particular_support("sudo")
wanted = list(sudo)
elif want == "whitelist":
whitelist = SUPPORT_USERS["White"] or support.get_particular_support("whitelist")
wanted = list(whitelist)
elif want == "sudo_level":
devs = SUPPORT_USERS["Dev"] or support.get_particular_support("dev")
sudo = SUPPORT_USERS["Sudo"] or support.get_particular_support("sudo")
wanted = list(sudo) + list(devs) + [OWNER_ID]
else:
devs = SUPPORT_USERS["Dev"] or support.get_particular_support("dev")
sudo = SUPPORT_USERS["Sudo"] or support.get_particular_support("sudo")
whitelist = SUPPORT_USERS["White"] or support.get_particular_support("whitelist")
wanted = list(set([int(OWNER_ID)] + list(devs) + list(sudo) + list(whitelist)))

return wanted or []
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ python-dateutil==2.8.2
pytube==15.0.0
pytz==2024.1
pyyaml==6.0.1
qrcode==7.4.2
qrcode==8.0
regex==2023.12.25
requests==2.32.2
rfc3986==1.5.0
Expand Down

0 comments on commit 51d277e

Please sign in to comment.