I have written a small Slack bot for my workplace which uses the slack events API. The event handler runs Python http.server, and responds to events sent by Slack.
At