dubLinkMaker
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
We started using dub.co for shortlinks at Mux, so we made a quick Slackbot to make it easier!
- Fork this thing to your account
- Set up a Slack bot/app and have the webhooks point at your forked Val
- Add the following environment variables to Val.town:
DUB_API_KEYyour Dub API keyDUB_WORKSPACE_IDyour Dub workspace IDSLACK_MUX_LINK_SIGNING_SECRETSigning secret for the app you created
- Update the
LINK_DOMAINvariable to be the one you want to use (needs to be set up in Dub, of course) - 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.
Get started with a template: