diff --git a/src/discordPoster.py b/src/discordPoster.py index 704cf5e..376360d 100644 --- a/src/discordPoster.py +++ b/src/discordPoster.py @@ -2,5 +2,5 @@ import discordwebhook, datetime def send_url_to_discord(webhook_url: str, backup_url: str, datetim: datetime.datetime, backup_name: str): webhook = discordwebhook.Webhook(url=webhook_url) - embed = discordwebhook.Embed(title=f"Backup of {backup_name} from {str(datetim.year)}-{str(datetim.month)}-{str(datetim.day)}", description=backup_url) + embed = discordwebhook.Embed(title=f"Backup of {backup_name} from {datetim.strftime("%Y-%m-%d")}", description=backup_url) webhook.send_sync(content="", embed=embed) \ No newline at end of file