Milos Bejda - All Things Automated

The Most Advance Meme Bot for Slack

What is Serverless Slackbot Doge?

Slackbot Doge is a serverless meme bot for Slack that utilizes and leverages the following Amazon Web Services : Amazon API, Amazon S3 Buckets, Amazon Lambda. Best of all, it is easy to install.

Installation

Lambda Function & S3 Bucket

Create an Amazon S3 bucket that will contain all your user-generated memes.Download SlackBot Doge zip from Github and upload it to your Lambda function. Give your Lambda function access to your S3 resources by going to configuration->role->custom role and adding the following policy. Make sure to update the Resource to your own.

API Gateway

In the Amazon dashboard, navigate to Amazon API Gateway and click on Create API.
Fill in some basic API information and then click Create API. Now create a new API GET method and set the integration type to Lambda Function. Make sure that the Lambda Region corresponds to your Lambdas region. If you have done everything correctly your Lambda function should automatically prepopulate. Then click save.

Now we are going to MAP Slacks request variables.
Click on Integration Request->Body Mapping Templates->Add Mapping Template
Put the following into the header type