Remove dhooks

This commit is contained in:
2021-10-29 01:17:55 +02:00
parent 3ca1c7286d
commit 0445b73a7f
3 changed files with 2 additions and 277 deletions

View File

@ -6,12 +6,9 @@ from datetime import datetime
from pathlib import Path
import ffmpeg
from dhooks import Webhook
from fastapi import FastAPI, File, UploadFile
from fastapi.responses import HTMLResponse
hook = Webhook(os.environ["WEBHOOK"])
app = FastAPI(
title="discord-nice-embed",
description="""
@ -72,7 +69,6 @@ async def upload_file(file: UploadFile = File(...)):
except Exception as exception: # pylint: disable=broad-except
print(f"Failed to get content type/create folder: {exception}")
hook.send(f"Failed to get content type/create folder: {exception}")
file_location = f"{output_folder}/{file.filename}"