Skip to content

Instantly share code, notes, and snippets.

View s0lst1ce's full-sized avatar

s0lst1ce s0lst1ce

View GitHub Profile
@s0lst1ce
s0lst1ce / webhook.py
Last active August 3, 2022 11:59
APOD discord webhook
import requests
import json
webhook_url = "webhook_token"
apod_url = "https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY"
headers = {
"Content-Type": "application/json",
}
embed_template = {