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:
Slack: api.slack.com/
AWS: aws.amazon.com/
You can also find the code for this tutorial on GitHub at the following link:
GitHub: github.com/hitchon1/Slack_Jokes
For some inspiration, we will use a list of hilarious jokes from this Country Living article: www.countryliving.com/life/entertainment/a36178514…
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
コメント