Skip to content

This was used for my DDDSydney 2018 presentation: "Introduction into Serverless or: How to run a simple chatbot side project for cheap"

Notifications You must be signed in to change notification settings

benmcp/slack-chatbot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catbot Chatbot

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.

chatbot

Getting Started

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.

Prerequisites

There are four parts to setting up this project:

Details to set up each section are below:

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!

Running locally

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:

ngrok

Deployment

To deploy changes to your app, run:

sls deploy

Built With

Authors

License

MIT

About

This was used for my DDDSydney 2018 presentation: "Introduction into Serverless or: How to run a simple chatbot side project for cheap"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •