diff --git a/insta.py b/insta.py index e76884e..0d194f0 100644 --- a/insta.py +++ b/insta.py @@ -13,6 +13,17 @@ init_time = now.strftime("%H:%M:%S") init_time_with_day = now.strftime("%Y-%m-%d %H:%M:%S.%f") +# Webhook Config +webhook = DiscordWebhook(url=discord_webhook_url, avatar_url="https://i.imgur.com/IpIG5TP.png", username="Instagram Statistics Tracker") +footer_text = "Silverarmor's Instagram tracking of " + scrape_username + +embed = DiscordEmbed(title="Initialised", description="Initialised at" + init_time_with_day, color=0xFEFEFE) +# Add embed object to webhook +webhook.add_embed(embed) +# Send Webhook +response = webhook.execute() +webhook.remove_embed(0) + # # Uncomment if you want to prompt user for account to scrape. Else will use credentials.py's version # scrape_username = input("Enter an Instagram account's username to scrape it's data: ") @@ -200,10 +211,6 @@ def string_divide(string, div): # WEBHOOK SENDING -# Webhook Config -webhook = DiscordWebhook(url=discord_webhook_url, avatar_url="https://i.imgur.com/IpIG5TP.png", username="Instagram Statistics Tracker") -footer_text = "Silverarmor's Instagram tracking of " + scrape_username - # # Webhook Data Message # VARS data_description = "**Ran Successfully**\nTracking " + scrape_username