Python Slack API Bot: How to Build a Joke-Telling Bot with AWS Lambda, Slack Tutorial

preview_player
Показать описание
In this video, we will learn how to build a simple Slack API bot that tells jokes when triggered by a /command. We will use Python to code the bot and AWS Lambda to host and run it. This tutorial is perfect for beginners who want to learn how to build a Slack bot and use AWS Lambda.

0:00 Introduction
0:45 Getting the slack API
3:20 Using AWS Lamda Intro
4:45 Coding Python in Lamda
16:00 Setting up slash command and testing

First, we will set up a new bot in the Slack API. Then, we will create a function in Python that retrieves a joke from a list and sends it back to Slack. Finally, we will deploy the function to AWS Lambda and test the bot in a Slack channel.

To follow along with the tutorial, you will need a Slack account and an AWS account. You can sign up for both at the links provided below:

You can also find the code for this tutorial on GitHub at the following link:

By the end of this tutorial, you will have a fully functional Slack API bot that can tell jokes on demand. Let's get started!

#python #aws #awslambda #api #slack #programmingtutorials
Рекомендации по теме
Комментарии
Автор

How would I build one if I wanted to add parameters to the joke command? /Joke banana for example

VJRamirez-qg
Автор

can you also make a video showing how to create a bot with a UI in Slack, also hosted on Lambda?

moritzgro