diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-03-12 13:56:30 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-03-12 13:56:50 -0700 |
| commit | caa3cf245186ab0f6fb33e63a7dd838d834da12e (patch) | |
| tree | bc5742a134ecabf0b9d35cc12b1d6f67defd5da7 /community/disc.py | |
| parent | 5658441ab9b703c95a48e654d41e45cc3a55ffd3 (diff) | |
refactor: move to common NewsSource interface
cleanup imports by defining initaliazers modules and decorator
remove legacy scrapers
remove single factory for sega games (sites don't change that much)
Diffstat (limited to 'community/disc.py')
| -rw-r--r-- | community/disc.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/community/disc.py b/community/disc.py index b6b7815..90e32f6 100644 --- a/community/disc.py +++ b/community/disc.py @@ -1,8 +1,6 @@ import os import requests -from dotenv import load_dotenv -load_dotenv() def fetch_messages(channel_id: str): url = f"https://discord.com/api/v9/channels/{channel_id}/messages?limit=50" @@ -23,4 +21,4 @@ def fetch_messages(channel_id: str): "x-discord-timezone": "America/Vancouver", } response = requests.get(url, headers=headers) - return response.json() + return response.json()
\ No newline at end of file |
