DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,547 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Custom slack command use case - Sharing urls
Rudolf Juriőić for Bornfight

Posted on

Custom slack command use case - Sharing urls

As part of our knowledge sharing experience, we've created a custom Slack command to help us with bookmarking the relevant urls for the whole team.

Why?

Someone shares an interesting url on Slack. If you are busy at that moment, you'll probably ignore it or say to yourself I’ll read it later and probably forget about it.

What?

So we crated a slack custom integration. You type shareurl <url> in slack and this url ends up in our internal blog. On our weekly meet we review the shared urls and authors give the tldr; version to the rest of the team.

How?

When you type the command with a url, payload is sent to our custom app.
Url is then parsed and meta data obtained from a 3rd party service.
App then checks if there is a blog post called Shared Urls Week {year}-{week number}
If it does not exist, it creates a blog post via WP api with the appropriate title and adds the content to it (url with its meta-data and slack username)
If it exists, it appends the information to that blog post.

Alt Text

Over-engineered or not, we like to play with automation and integrations :)

Used tools

Top comments (0)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›