From 04ee0b8759c789e2294aa0c053832b85430e762a Mon Sep 17 00:00:00 2001 From: Camille Frantz Date: Fri, 22 Nov 2024 12:31:04 -0600 Subject: [PATCH] add an example environment file --- env.sample | 3 +++ main.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 env.sample diff --git a/env.sample b/env.sample new file mode 100644 index 0000000..471fc40 --- /dev/null +++ b/env.sample @@ -0,0 +1,3 @@ +DISCORD_USERNAME= +DISCORD_WEBHOOK= +GITHUB_TOKEN= diff --git a/main.py b/main.py index f60e4fa..069788e 100644 --- a/main.py +++ b/main.py @@ -21,8 +21,8 @@ except: # load in the relevant .env variables load_dotenv() discord_user = getenv('DISCORD_USERNAME') -dicord_webhook_url = getenv('DISCORD_WEBHOOK_TEST') -webhook = SyncWebhook.from_url(getenv('DISCORD_WEBHOOK_TEST')) +discord_webhook_url = getenv('DISCORD_WEBHOOK') +webhook = SyncWebhook.from_url(getenv('DISCORD_WEBHOOK')) github_token = getenv('GITHUB_TOKEN') # list of repos to check