The code will be simple and will do the one and only task that I mentioned: detect the phrase and respond with an image. You don't have to know anything about Slack or Python frameworks, but basic Python skills are required (also a Heroku account or your own server would be helpful). This post will show you how to integrate with Slack in two ways: using bot users and outgoing webhooks. I finally put together the information from different sources and decided to describe the process here. It was difficult for a person not familiar with Slack API and with bots in general to quickly create nothing more than a simple bot. But I found out that the learning resources are somewhat scattered around the Internet. It's job was to read messages and, if 'that would be great' was detected in the content, respond to the message with a picture of Bill Lumbergh from Office Space (yeah, I'm a funny guy).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |