add an example environment file

This commit is contained in:
Camille Frantz 2024-11-22 12:31:04 -06:00
parent 8db780914b
commit 04ee0b8759
Signed by: fyrfli
SSH Key Fingerprint: SHA256:cyNGncrLxKXAgYC96dYNROnQKikLInzrpiMraZdqyhY
2 changed files with 5 additions and 2 deletions

3
env.sample Normal file
View File

@ -0,0 +1,3 @@
DISCORD_USERNAME=
DISCORD_WEBHOOK=
GITHUB_TOKEN=

View File

@ -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