Move everything to one file

This commit is contained in:
2022-07-15 23:09:20 +02:00
parent fad403b2c0
commit 628ffc9587
7 changed files with 172 additions and 289 deletions

View File

@ -1,18 +0,0 @@
"""Send webhook to Discord."""
from discord_webhook import DiscordWebhook
from discord_embed import settings
def send_webhook(message: str) -> None:
"""Send webhook to Discord.
Args:
message: The message to send.
"""
webhook = DiscordWebhook(
url=settings.webhook_url,
content=message,
rate_limit_retry=True,
)
webhook.execute()