Skip to content

Commit

Permalink
Commit message goes here
Browse files Browse the repository at this point in the history
  • Loading branch information
Roblox-Thot committed Mar 12, 2024
1 parent 3a48568 commit c52b812
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions DecalUploader/Uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ def send_discord_message(webhook:str, name_value:str, decal_value, img_value):

payload = {"embeds": [embed_data]}

status = requests.post(webhook, data=dumps(payload), headers={"Content-Type": "application/json"}).text
if 'Invalid Webhook Token' in status or 'Unknown Webhook' in status:
global WEBHOOK
WEBHOOK = '' # Webhook doesn't exist so don't keep sending stuff
return requests.post(webhook, data=dumps(payload), headers={"Content-Type": "application/json"}).text

def get_image_id(decal_id):
# sourcery skip: instance-method-first-arg-name
Expand Down

0 comments on commit c52b812

Please sign in to comment.