From bf3cc3f683b7ec9317b2c65e5528997514705b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Thu, 28 Oct 2021 20:51:44 +0200 Subject: [PATCH] Add metadata to Docs --- main.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 6dd6c64..f94090b 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,24 @@ from fastapi import FastAPI, File, UploadFile from fastapi.responses import HTMLResponse hook = Webhook(os.environ["WEBHOOK"]) -app = FastAPI() + +app = FastAPI( + title="discord-nice-embed", + description=""" +Discord will only create embeds for videos and images if they are smaller than + 8mb. We can "abuse" this by using the "twitter:image" HTML meta tag. +""", + version="0.0.1", + contact={ + "name": "Joakim Hellsén", + "url": "https://github.com/TheLovinator1", + "email": "tlovinator@gmail.com", + }, + license_info={ + "name": "GPL-3.0", + "url": "https://www.gnu.org/licenses/gpl-3.0.txt", + }, +) try: domain = os.environ["DOMAIN"]