Skip to content

Commit

Permalink
Adds instructions for configuring a new slack app to connect to wtf-bot
Browse files Browse the repository at this point in the history
  • Loading branch information
karlbrown-va committed Jul 21, 2022
1 parent 3a69c95 commit 3619eaa
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
26 changes: 26 additions & 0 deletions slack_app_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
display_information:
name: wtf-bot
description: VA acronym bot
background_color: "#0a43f0"
long_description: "Looks up acronyms - use with /wtf <acronym>\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

0 comments on commit 3619eaa

Please sign in to comment.