Clean up code and remove dependency on matrix-widget-api. Use giphy.mau.dev for MSC3860 redirects

This commit is contained in:
Nischay
2024-05-12 21:53:39 +05:30
parent 398fc952b6
commit ca99c5f00d
17 changed files with 76 additions and 215 deletions

View File

@@ -56,6 +56,7 @@ async def load_config(path: str) -> None:
homeserver_url = config["homeserver"]
access_token = config["access_token"]
giphy_api_key = config["giphy_api_key"]
giphy_homeserver = config["giphy_homeserver"]
except FileNotFoundError:
print("Matrix config file not found. Please enter your homeserver and access token. Enter the Giphy API token if required, leave blank to disable the gif picker.")
homeserver_url = input("Homeserver URL: ")