Skip to content

Commit

Permalink
Add webhook msg when program initialised
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverarmor committed Feb 14, 2021
1 parent 7b1aeab commit 12956ab
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions insta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: ")

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 12956ab

Please sign in to comment.