Spaces:
Sleeping
Sleeping
Abhinav
commited on
feat: Allow passing api keys directly
Browse files- utils/wolvesville.py +5 -2
utils/wolvesville.py
CHANGED
@@ -7,8 +7,11 @@ load_dotenv()
|
|
7 |
|
8 |
|
9 |
class Wolvesville:
|
10 |
-
def __init__(self):
|
11 |
-
|
|
|
|
|
|
|
12 |
self.headers = {"Authorization": f"Bot {API_KEY}"}
|
13 |
self.url = "https://api.wolvesville.com"
|
14 |
|
|
|
7 |
|
8 |
|
9 |
class Wolvesville:
|
10 |
+
def __init__(self, api_key=None):
|
11 |
+
if api_key == None:
|
12 |
+
API_KEY = getenv("API_KEY")
|
13 |
+
else:
|
14 |
+
API_KEY = api_key
|
15 |
self.headers = {"Authorization": f"Bot {API_KEY}"}
|
16 |
self.url = "https://api.wolvesville.com"
|
17 |
|