in bots/triage-slackbot/triage_slackbot/config.py [0:0]
def load_config(path: str):
load_dotenv()
with open(path) as f:
cfg = toml.loads(f.read())
config = Config(**cfg)
if config.other_category_enabled:
other_category = RequestCategory(
key=OTHER_KEY,
display_name=OTHER_KEY.capitalize(),
oncall_slack_id=None,
autorespond=True,
autorespond_message="Our team looked at your request, and this is actually something that we don't own. We recommend reaching out to {} instead.",
)
config.categories[other_category.key] = other_category
global _CONFIG
_CONFIG = config
return _CONFIG