slash-profile
Slack's custom profile fields are great! But looking them up takes a while. What if it were this easy?
This is the code that backs them all: /github
, /house
, /pronoun
, and /twitter
, currently.
Configuration
To add a new slash-profile backed slack command:
- Find the field ID. The easiest way to do that is to use the Slack API tester, setting
include_labels
to1
. You want the path to the desired field, slash-separated, e.g.email
orfields/Xf0???????
for custom fields. - Add a Slack slash command, with your chosen name. Point it at
POST https://slack-profile.appspot.com/<field path>
. I like to set the name toprofile-bot
and the icon to:robot_face:
, and add a help message and description. Note down the token. - Add the token to the set
secrets.tokens
. If you haven't already, add a slack API token assecrets.slack_bot_token
. Redeploy the app (see below). - ???
:party_dino:
Dev & deploy
You'll need gcloud
with the App Engine components installed, and the App Engine SDK. To deploy, make deploy
. Ask @benkraft for access.