Skip to content

damiansf/Bot-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a basic bot for single team use that can be used as a template to build other, more complex bots.

Refer to this Medium article for more information: https://medium.com/@damiansandhu11/building-custom-slack-bots-using-botkit-825fb4a6f3c7

Before following the below instructions, use yarn or npm to install all dependencies

Spin up the bots public URL with: lt --port THEPORTINTHEENVFILE --subdomain YOURSUBDOMAIN -h http://localtunnel.me --local-https false

*Note, the "-h http://localtunnel.me --local-https false" part above is needed as localtunnel's certificate has expired and has not been renewed yet (localtunnel/localtunnel#332) once it is renewed this part can be removed

to start the local tunnel (in a seperate terminal window).

To install the bot go to http://YOURSUBDOMAIN.localtunnel.me/login

Run the bot with with: node .

Run tests with:

npm run test