Skip to content

Commit c662605

Browse files
committed
move channel ID out of secrets
It's public info so doesn't need to be in secrets.py
1 parent 7004327 commit c662605

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/requests_api_discord.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
import socketpool
1111
import adafruit_requests
1212

13-
# Web scrape authorization key required
13+
# Active Logged in User Account Required, no tokens required
14+
# WEB SCRAPE authorization key required. Visit URL below.
1415
# Learn how: https://github.com/lorenz234/Discord-Data-Scraping
1516

16-
# Ensure these are uncommented and in secrets.py or .env
17-
# "Discord_Adafruit_Channel": "327254708534116352", # Adafruit Channel ID
17+
# Ensure this is in secrets.py or .env
1818
# "Discord_Authorization": "Discord Authorization from browser console"
1919

2020
# Initialize WiFi Pool (There can be only 1 pool & top of script)
@@ -46,7 +46,7 @@
4646
discord_header = {"Authorization": "" + secrets["Discord_Authorization"]}
4747
ADA_SOURCE = (
4848
"https://discord.com/api/v10/guilds/"
49-
+ secrets["Discord_Adafruit_Channel"]
49+
+ "327254708534116352" # Adafruit Discord ID
5050
+ "/preview"
5151
)
5252

0 commit comments

Comments
 (0)