Add metadata to Docs

This commit is contained in:
2021-10-28 20:51:44 +02:00
parent 6fdc6a80b0
commit bf3cc3f683

19
main.py
View File

@ -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"]