Back to APIs list
Slack API examples & templates
Use these vals as a playground to view and fork Slack API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
dailyStandupBot
@stevekrouse
Cron
Daily Standup Bot Every weekday at 9am EDT send a message to our team's #engineering Discord channel to start a thread to remind us to do our standup. Slack version: @mikker/dailySlackRoundup Note : We started doing in-person standups at Val Town, so this val was unscheduled.
To get it working for you, you'll need to: Fork it Change its type from Script to Cron and set a schedule like 0 13 * * 1-5
dubLinkMaker
@mux
HTTP
Dub Shortlink Slackbot We started using dub.co for shortlinks at Mux, so we made a quick Slackbot to make it easier! Usage 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_KEY your Dub API key DUB_WORKSPACE_ID your Dub workspace ID SLACK_MUX_LINK_SIGNING_SECRET Signing secret for the app you created Update the LINK_DOMAIN variable 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.