add an example environment file
This commit is contained in:
parent
8db780914b
commit
04ee0b8759
3
env.sample
Normal file
3
env.sample
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
DISCORD_USERNAME=
|
||||||
|
DISCORD_WEBHOOK=
|
||||||
|
GITHUB_TOKEN=
|
4
main.py
4
main.py
@ -21,8 +21,8 @@ except:
|
|||||||
# load in the relevant .env variables
|
# load in the relevant .env variables
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
discord_user = getenv('DISCORD_USERNAME')
|
discord_user = getenv('DISCORD_USERNAME')
|
||||||
dicord_webhook_url = getenv('DISCORD_WEBHOOK_TEST')
|
discord_webhook_url = getenv('DISCORD_WEBHOOK')
|
||||||
webhook = SyncWebhook.from_url(getenv('DISCORD_WEBHOOK_TEST'))
|
webhook = SyncWebhook.from_url(getenv('DISCORD_WEBHOOK'))
|
||||||
github_token = getenv('GITHUB_TOKEN')
|
github_token = getenv('GITHUB_TOKEN')
|
||||||
|
|
||||||
# list of repos to check
|
# list of repos to check
|
||||||
|
Loading…
Reference in New Issue
Block a user