summaryrefslogtreecommitdiff
path: root/src/moyai_bot/apis/guzzle.py
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-24 18:28:18 -0500
committerseth <[email protected]>2023-01-24 22:03:37 -0500
commit5deaf0cc1580e13c48f3dbc7ff4c76d35640fcfc (patch)
tree5c015a1a43bb6fc79c5ec4e264111abc006c8dd4 /src/moyai_bot/apis/guzzle.py
parent95961b27a88230a22a74ae9de6cdd60d3beda95d (diff)
feat: moyaiBot -> teawieBot
Diffstat (limited to 'src/moyai_bot/apis/guzzle.py')
-rw-r--r--src/moyai_bot/apis/guzzle.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/moyai_bot/apis/guzzle.py b/src/moyai_bot/apis/guzzle.py
deleted file mode 100644
index 67eb34d..0000000
--- a/src/moyai_bot/apis/guzzle.py
+++ /dev/null
@@ -1,20 +0,0 @@
-import requests
-
-GUZZLE: str = "https://guzzle.gay/api"
-
-
-def get_random_teawie() -> str:
- resp: requests.Response = {}
- try:
- resp = requests.get(GUZZLE + "/get_random_teawie", timeout=30)
- except (requests.RequestException, requests.ConnectionError,
- requests.HTTPError, requests.JSONDecodeError):
- return "something went wrong :("
- if not resp.status_code == 200:
- return "api request failed :("
-
- try:
- ret = resp.json()["url"]
- except KeyError:
- return "couldn't get url from api response :("
- return ret