removing references to discord and discord.py from code

This commit is contained in:
Camille Frantz 2024-11-22 13:05:16 -06:00
parent 7ead1faafd
commit 317615272c
Signed by: fyrfli
SSH Key Fingerprint: SHA256:cyNGncrLxKXAgYC96dYNROnQKikLInzrpiMraZdqyhY

View File

@ -1,6 +1,5 @@
from dotenv import load_dotenv
from requests import get,post,put
# from discord import SyncWebhook
from datetime import datetime as dt, timezone as tz
from time import mktime
from feedparser import parse
@ -22,7 +21,6 @@ except:
load_dotenv()
discord_user = getenv('DISCORD_USERNAME')
discord_webhook_url = getenv('DISCORD_WEBHOOK')
# webhook = SyncWebhook.from_url(getenv('DISCORD_WEBHOOK'))
github_token = getenv('GITHUB_TOKEN')
# list of repos to check
@ -79,7 +77,7 @@ def get_latest_releases():
# debug
# print(f"call was post({discord_webhook_url}, headers={headers}, json={payload})")
return False
# webhook.send(f"{release_details['name']}: {release_details['tag_name']}\n{release_details['html_url']}")
# debug
# else:
# print(latest_release.status_code, latest_release.reason)
else: