From 3619eaa5bda0e43580af2d45fcd13710b1edb92f Mon Sep 17 00:00:00 2001 From: Karl Brown Date: Thu, 21 Jul 2022 10:21:34 -0400 Subject: [PATCH] Adds instructions for configuring a new slack app to connect to wtf-bot --- README.md | 14 +++++++++++++- slack_app_config.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 slack_app_config.yaml diff --git a/README.md b/README.md index 8b5fc7b..deba368 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,18 @@ # wtf-bot -A Flask application that powers the /wtf Slack command. Inspired by a [previous incarnation](https://github.com/paultag/wtf) of similar functionality. Configured for deployment on [Cloud.gov](https://www.cloud.gov). Relies on the VA [acronym list](https://github.com/department-of-veterans-affairs/acronyms). +A Flask application that powers the /wtf Slack command. Inspired by a [previous incarnation](https://github.com/paultag/wtf) of similar functionality. Relies on the VA [acronym list](https://github.com/department-of-veterans-affairs/acronyms). + +## Install to slack + +If using a VA slack instance, you can configure an instance of this bot into your slack. +To do this, follow these steps: +1. Create a new slack app in your workspace, using the [manifest](slack_app_config.yaml). Instructions to do this are [here](https://api.slack.com/reference/manifests#creating_apps). +2. Get the app approved by your administrators and add it to your workspace. +3. Submit a ticket to the [DOTS service desk](https://vajira.max.gov/servicedesk/customer/portal/1/create/17) and provide the 'Verification Token' available in the `Basic Information / App Config` section of your bot config. +This token is used to validate your requests to the wtf-bot. +4. DOTS will inform you when the token has been added, and will provide you with the URL to the wtf-bot service. This +URL should be added to your app config to replace the `http://replace.me.com/slack` link. +5. Test out the wtf-bot in your slack with `/wtf VA` - it should work! ## Local development diff --git a/slack_app_config.yaml b/slack_app_config.yaml new file mode 100644 index 0000000..f118096 --- /dev/null +++ b/slack_app_config.yaml @@ -0,0 +1,26 @@ +--- +display_information: + name: wtf-bot + description: VA acronym bot + background_color: "#0a43f0" + long_description: "Looks up acronyms - use with /wtf \r + + This pulls acronyms from the https://github.com/department-of-veterans-affairs/acronyms repository, and uses the https://github.com/department-of-veterans-affairs/wtf-bot" +features: + bot_user: + display_name: wtf-bot + always_online: true + slash_commands: + - command: /wtf + url: http://replace.me.com/slack + description: VA acronym bot + usage_hint: "[acronym]" + should_escape: false +oauth_config: + scopes: + bot: + - commands +settings: + org_deploy_enabled: false + socket_mode_enabled: false + token_rotation_enabled: false