This is a Slack based Chatbot which pulls images fom Google Custom Search.
This was used for my DDDSydney 2018 presentation Introduction into Serverless or: How to run a simple chatbot side project for cheap.
Note, if you run into any major issues along the way, hit me up in Github Issues, Twitter or via Email! There are probably a few bugs/jumps that I didn't quite explain properly.
There are four parts to setting up this project:
Details to set up each section are below:
- Create an AWS account
- Setup and deploy the serverless app
- Create a Slack Bot
- Set up Google Custom Search
Theoretically, if you follow these steps, you should have a fully functioning Slack Chatbot!
If there are any issues with the tutorial, please create an Issue in this repo explaining the problem and I'll update it!
You may want to make changes and run this locally for testing.
To run a local instance, in your temrinal, run:
npm start
This will spin up the app at localhost:3000.
At the time of writing, the easiest way to run this in slack is to download and install ngrok.
ngrok creates a custom Public Url for one of your local ports.
When you have installed the app, run:
ngrok http 3000
This will create a public URL that will point to your localhost:3000 port.
Copy the ngrok generated URL and update the Slack Event Subscription endpoint with your ngrok url:
To deploy changes to your app, run:
sls deploy
- Serverless - The Serverless framework used
MIT

