wiki:GENIRacksHome/OpenGENIRacks/RaspberryPIs/DiversityNotes

Version 17 (modified by rrhain@bbn.com, 3 years ago) (diff)

--

Using RaspberryPI's for Creating an Interesting Slackbot

Install Node.js and NPM

sudo apt-get remove nodered
sudo apt-get remove nodejs nodejs-legacy
sudo apt-get remove npm 
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install -y build-essential python-dev nodejs npm
sudo apt-get update
sudo apt-get install -y build-essential python-dev nodejs npm
sudo apt-get install -y build-essential python-dev nodejs
sudo apt-get install -y npm
node -v
sudo apt-get upgrade
sudo apt-get update
sudo apt-get install -y build-essential python-dev nodejs npm
sudo apt-get install npm
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb

Follow This Tutorial

https://scotch.io/tutorials/building-a-slack-bot-with-node-js-and-chuck-norris-super-powers
https://github.com/michikono/slackbot-tutorial
http://www.michikono.com/2015/07/10/in-depth-tutorial-on-writing-a-slackbot/

NPM

https://www.sitepoint.com/beginners-guide-node-package-manager/

HUBOT Tutorial

https://www.sitepoint.com/spice-up-your-slack-channel-with-hubot/
https://github.com/github/hubot/blob/master/docs/scripting.md
https://github.com/Emile-Filteau/hubot-catme/blob/master/src/catme.coffee
http://coffeescript.org/
https://nodejs.org/api/http.html#http_class_http_serverresponse

Attachments (3)

Download all attachments as: .zip