VegeBot is a bot that gives vegeterian recipes when through an ingredient The prompt : /command on slack called sexyveg with a POST method (go to slack's Apps & Intregrations/Custom Integration/Slash Commands to set it up)
#General install :
- get a URL linked to a server (we have added info on this bellow)
- Install the package on the server linked to the URL.
- Copy/paste the URL in the slack custom-intergration page
- Run the index.js
- The program will run until stopped
##Getting a URL linked to a server
###How to install locally
- run npm install
- run ./ngork http 3000 (create a URL with my local host to put in slack )
- get the ngrok url from their interface
###How to install on an external server :
- Get a server (e.g. Digital Ocean) you can run with bash commands. Install linux and then node.
- Get a dommain name (example.com) or a subdomain (subdomain.example.com)
- the url is example.com:3000 or subdomain.example.com:3000
###how to install on heroku ??? ??? WORKING ON THIS
- get a heroku account
- Make sure you have the Heroku CLI installed.
- Deploying to Heroku
$ heroku create $ git push heroku master $ heroku open
- Copy the url given, and paste it in the Slash Command with the GET method
##Inspiration : tutorial : http://www.girliemac.com/blog/2016/10/24/slack-command-bot-nodejs/
It works!! Happy Vegging.