diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 357593f..3b8e923 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -9,11 +9,11 @@ en: ########## SLACK SETTINGS ############# ####################################### chat_integration_slack_enabled: 'Enable the slack chat-integration provider' - chat_integration_slack_outbound_webhook_url: 'URL for outbound slack requests' + chat_integration_slack_access_token: 'OAuth Access Token for authenticating with Slack' + chat_integration_slack_incoming_webhook_token: 'The verification token used to authenticate incoming requests' chat_integration_slack_excerpt_length: 'Slack post excerpt length' chat_integration_slack_icon_url: 'Icon to post to slack with (defaults to forum logo)' - chat_integration_slack_incoming_webhook_token: 'Token sent in the payload from the Slack outoing webhook' - chat_integration_slack_access_token: 'Token if you are using the Web API instead of webhooks' + chat_integration_slack_outbound_webhook_url: 'URL for outbound slack requests' errors: chat_integration_slack_api_configs_are_empty: "You must enter either an outbound webhook URL, or an access token" diff --git a/config/settings.yml b/config/settings.yml index 16dd6d8..2158c1a 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -13,17 +13,19 @@ plugins: chat_integration_slack_enabled: default: false validator: "ChatIntegrationSlackEnabledSettingValidator" - chat_integration_slack_outbound_webhook_url: - default: '' - regex: '^https:\/\/hooks\.slack\.com\/services\/.+$' - chat_integration_slack_excerpt_length: - default: 400 - chat_integration_slack_icon_url: + chat_integration_slack_access_token: default: '' chat_integration_slack_incoming_webhook_token: default: '' - chat_integration_slack_access_token: + chat_integration_slack_excerpt_length: + default: 400 + chat_integration_slack_outbound_webhook_url: default: '' + regex: '^https:\/\/hooks\.slack\.com\/services\/.+$' + hidden: true + chat_integration_slack_icon_url: + default: '' + hidden: true ####################################### ######### TELEGRAM SETTINGS ###########