Auto-Creating Slack Channels from WordPress

Image from page 279 of “The Ladies’ home journal” (1889) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) In working through the project page a bit more, it seemed like it’d be more pleasant to start in WordPress and have our events echo outward in other services. One of those events is the creation of project specific Slack channels. In the past, I’d mainly listened for events . . . programmatically checking back every so often to see if something had occurred so I could do something else. In this case it made more sense to have one action directly precipitate another. These are the three functions that fire when we publish the custom-post-type Project.1 In any case, it’s a pretty instantaneous creation and invitation to the channels. 1 I don’t know how to punctuate that but it’s probably not hyphens.

List Public Slack Channels via API

Image from page 249 of “The development of the chick; an introduction to embryology” (1919) flickr photo by Internet Archive Book Images shared with no copyright restriction (Flickr Commons) I ended up doing this while pursuing some of the API integration stuff for our projects page. It doesn’t list the private pages and might be useful to someone. This was the byproduct of looking for a way to look up the ID for a particular channel which ended up looking like this.

Adjusting Tension in Slack

flickr photo shared by ReflectedSerendipity under a Creative Commons ( BY-SA ) license Like everyone else it seems, we started using Slack at work. It’s been a while (maybe 6 months?) and I’ve had mixed feelings which seem to be echoed by the group so I thought I’d take a harder look at our use and at least sketch out my personal feelings about where it’s working for me and where I’m struggling. As you should expect, your mileage should vary. Do not trust me. I am an unreliable narrator. I may not even know what’s going on here. Umwelt and all that. Workflow & Intent On my end, I thought Slack was worth pursuing mainly because of archive and search. Workflow baby. I’ve had a number of jobs and it’s really ugly to come in somewhere and realize any documentation that exists is in email exchanges. Those emails may forwarded to you in bulk or individually as you request information or they could simply disappear. That’s pretty horrific and if the emails are between the person you replaced and a faculty member, it’s really easy to simply lose all that information. The archive is valuable and while formal documentation is important a chunk of this stuff ought to be available through organic means. Given we’ve had a fair amount […]