This commit is contained in:
bannert 2026-08-14 08:25:21 -05:00 committed by GitHub
commit c2da4dedf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -2100,10 +2100,17 @@ def _get_enabled_platforms() -> List[str]:
enabled.append("discord")
if get_env_value("SLACK_BOT_TOKEN"):
enabled.append("slack")
if get_env_value("WHATSAPP_ENABLED"):
whatsapp_enabled = get_env_value("WHATSAPP_ENABLED", "").lower()
if whatsapp_enabled in ("true", "1", "yes"):
enabled.append("whatsapp")
if get_env_value("QQ_APP_ID"):
enabled.append("qqbot")
# Matrix: check for homeserver URL (required) and either access token or password
matrix_homeserver = get_env_value("MATRIX_HOMESERVER")
matrix_token = get_env_value("MATRIX_ACCESS_TOKEN")
matrix_password = get_env_value("MATRIX_PASSWORD")
if matrix_homeserver and (matrix_token or matrix_password):
enabled.append("matrix")
return enabled