Public
HTTP (deprecated)
version 53
Readme

Dub Shortlink Slackbot

We started using dub.co for shortlinks at Mux, so we made a quick Slackbot to make it easier!

Usage

  1. Fork this thing to your account
  2. Set up a Slack bot/app and have the webhooks point at your forked Val
  3. Add the following environment variables to Val.town:
    • DUB_API_KEY your Dub API key
    • DUB_WORKSPACE_ID your Dub workspace ID
    • SLACK_MUX_LINK_SIGNING_SECRET Signing secret for the app you created
  4. Update the LINK_DOMAIN variable to be the one you want to use (needs to be set up in Dub, of course)
  5. Use the command you created in your Slack app! For us, it looks like this:
    • /mux.link https://example.com neat-example This is a quick link for an example.
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
mux-dublinkmaker.web.val.run
June 26, 2024