PyBites-Open-Source / karmabot

A Python based Slack Chatbot for community interaction
MIT License
73 stars 47 forks source link

option to provide defaults for env variables that are not set #96

Closed bbelderbos closed 3 years ago

bbelderbos commented 3 years ago

I was going to go with try/except around TEST_MODE, but adding a new optional argument to _get_env_var we can use this for other use cases too.

Issue: https://github.com/PyBites-Open-Source/karmabot/issues/84

bbelderbos commented 3 years ago

Superseded by https://github.com/PyBites-Open-Source/karmabot/pull/97 < that PR I'd love to go in which includes the changes from this PR.