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