Slack provides a web application programming interface (API) for programmatically interacting with its messaging service.
Use a Slack bot to deploy your app gives the sample code to a simplified bot that you can engage with in your chat channels to perform application deployments.
How I built a Slack bot to help me find an apartment in San Francisco is a story about how the author had issues finding an apartment while moving from Boston to San Francisco. He started scraping Craigslist to gather apartment data and built a Slack bot to message him as soon as something that matched his criteria became available so he could take a look at it.
Slack on an SNES is not a Python tutorial but it provides a crazy hack for communicating with Slack using a Super Nintendo.
Hacking Slack accounts: As easy as searching GitHub explains how secret Slack API keys are often committed to public GitHub repositories which allows malicious actors to easily break into an organization's messaging systems. Secret credentials in public repositories is a problem for any API and it is a particular problem for ones that are critical to a business' private communications.
Hacking Slack using postMessage and WebSocket-reconnect to steal your precious token examines a bug that the author found in Slack's WebSockets reconnection operation that he reported to Slack. Slack fixed the issue and paid him a bug bounty for his work.
Posting messages to Slack using incoming webhooks and Python3 Requests API is a short script that uses the Requests library instead of the Slack-provided Python helper libraries to interact with the API.
Build a Google Analytics Slack Bot with Python walks through creating a bot that posts Google Analytics data into Slack channels by combining the Slack and Google APIs.
slack-api-python-examples contains the example code from several Slack bot blog posts.
slackbot another popular Slack bot implementation.