Revert "Move everything to one file"

This reverts commit 628ffc9587.
This commit is contained in:
2022-07-18 00:47:38 +02:00
parent 628ffc9587
commit fa362e72e8
7 changed files with 294 additions and 177 deletions

18
discord_embed/webhook.py Normal file
View File

@ -0,0 +1,18 @@
"""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()