fix bad bug
parent
320f5b2f3a
commit
0038e79d31
|
@ -1,6 +1,6 @@
|
|||
import discordwebhook, datetime
|
||||
|
||||
def send_url_to_discord(webhook_url: str, backup_url: str, datetime: datetime.datetime, backup_name: str):
|
||||
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 {datetime.year}-{datetime.month}-{datetime.day}", description=backup_url)
|
||||
embed = discordwebhook.Embed(title=f"Backup of {backup_name} from {datetim.year}-{datetim.month}-{datetim.day}", description=backup_url)
|
||||
webhook.send_sync(content="", embed=embed)
|
Loading…
Reference in New Issue