How to Build a Slack Bot with Python

Posted by Matt Makai on
June 04, 2016.

Bots are a useful way to interact with chat services such as
Slack. If you have never built a bot before, this
post provides an easy starter tutorial for combining the
Slack API with Python to create your first bot.
We will walk through setting up your development environment, obtaining a
Slack API bot token and coding our simple bot in Python.
Tools We Need
Our bot, which we will name “StarterBot”, requires Python and the Slack API.
To run our Python code we need:
It is also useful to have the Slack API docs handy
while you’re building this tutorial.
All the code for this tutorial is available open source under the MIT license
in the slack-starterbot public
Establishing Our Environment
We now know what tools we need for our project so let’s get our development
environment set up. Go to the terminal (or Command Prompt on Windows) and
change into the directory where you want to store this

Original URL:

Original article

Comments are closed.

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: