forked from rDrama/rDrama
master
parent
0bd32529bd
commit
01a51422b8
|
@ -20,6 +20,14 @@ from files.__main__ import app, cache, limiter
|
||||||
from .front import frontlist
|
from .front import frontlist
|
||||||
from files.helpers.discord import add_role
|
from files.helpers.discord import add_role
|
||||||
|
|
||||||
|
IMGUR_KEY = environ.get("IMGUR_KEY", "").strip()
|
||||||
|
|
||||||
|
@app.get("/imgurcredits")
|
||||||
|
@admin_level_required(6)
|
||||||
|
def imgurcredits(v):
|
||||||
|
req = requests.post('https://api.imgur.com/3/credits', headers = {"Authorization": f"Client-ID {IMGUR_KEY}"})
|
||||||
|
return req.json
|
||||||
|
|
||||||
@app.post("/@<username>/make_admin")
|
@app.post("/@<username>/make_admin")
|
||||||
@admin_level_required(6)
|
@admin_level_required(6)
|
||||||
def make_admin(v, username):
|
def make_admin(v, username):
|
||||||
|
|
Loading…
Reference in New Issue