This commit is contained in:
piair 2024-02-28 11:38:21 +01:00
parent 19606e5f4c
commit 1c7d1dfcd6
1 changed files with 2 additions and 4 deletions

View File

@ -1,8 +1,7 @@
from discord import Embed, Colour, File
from modules.Classes.Config import Config
from modules.Classes.UserCredentials import UserCredentials
from modules.Tools.logger import info, warning, error, critical
from modules.Tools.logger import error
from modules.Tools.tools import format_error
@ -25,7 +24,7 @@ class DiscordLogger:
img.save("screenshot.png")
embed = Embed(
title="An Error has occured",
title="An Error has occurred",
description=str(message),
colour=Colour.red(),
)
@ -35,4 +34,3 @@ class DiscordLogger:
self.config.discord.wh.send(embed=embed, username="error", file=file, avatar_url=self.config.discord.avatar_url)
self.config.discord.wh.send(username="error", file=File("page.html"), avatar_url=self.config.discord.avatar_url)