diff --git a/catbox.py b/catbox.py index 5ffb742..7df84f5 100644 --- a/catbox.py +++ b/catbox.py @@ -22,6 +22,10 @@ http_headers: dict[str, str] = { } class CatboxAsync: + def __init__(self) -> None: + self.catbox_api_url = catbox_api_url + self.headers = http_headers + def generateRandomFileName(self, fileExt: Optional[str] = None) -> str: """ Generate random file name @@ -34,10 +38,6 @@ class CatboxAsync: fileExt = 'png' return f"{random.getrandbits(32)}.{fileExt}" - def __init__(self): - self.catbox_api_url = catbox_api_url - self.headers = http_headers - async def upload(self, file: str) -> Optional[str]: """ Upload file to catbox