Read about this code at https://smarx.com/posts/2020/09/shove-it-up-your-bot-an-intro-to-slack-bots/.