Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 666d53d

Browse files
author
Oscar Kevin
authored
revert config change (#84)
1 parent 6b3a917 commit 666d53d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

discord/rebecca/discordclient.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,8 @@ def rest_get(path: str):
3838
REST_API_URL = "http://0.0.0.0:5057" # LOCAL URL
3939
elif (BOT_ENV == 'dev') or (BOT_ENV == 'prod') :
4040
REST_API_URL = "http://convoy:5057" # CONTAINER NETWORK URL
41-
# RESPONSE = json.loads(requests.get(f'{REST_API_URL}/{path}').json())
42-
RESPONSE_RAW = requests.get(f'{REST_API_URL}/{path}')
43-
print(RESPONSE_RAW)
44-
RESPONSE_JSON = RESPONSE_RAW.json()
45-
print(RESPONSE_JSON)
46-
RESPONSE_LOADS = json.loads()
47-
print(RESPONSE_LOADS)
48-
return RESPONSE_LOADS
41+
RESPONSE = json.loads(requests.get(f'{REST_API_URL}/{path}').json())
42+
return RESPONSE
4943

5044
class MyDiscordClient(discord.Client):
5145
def __init__(self, *args, **kwargs):

0 commit comments

Comments
 (0)