Version 34 (modified by, 3 years ago) (diff)


Using RaspberryPI's for Creating an Interesting Slackbot

Install Node.js and NPM

It is always a good idea to the upgrade and update before adding packages after the initial installation of the OS on the PI.

sudo apt-get upgrade
sudo apt-get update

You might need to removed the old nodered, which might not be the package we want

sudo apt-get remove nodered
sudo apt-get remove nodejs nodejs-legacy
sudo apt-get remove npm 

And then get the latest node source and install

curl -sL | sudo bash -
sudo apt-get install -y build-essential python-dev nodejs 

npm seems to come with nodejs. When trying to do an apt-get install npm, I get an error. Running with

node --version

npm --version

Here is an alternate way to install, but the above method seemed to work.

sudo dpkg -i node_latest_armhf.deb

Useful Pages to Read



Coffee - the little language that compiles into Javascript

Slack Pages

BUA Diversity Slack Home Page

HUBOT Tutorial

Need to set up a bot in a slack page - So, you still need to set up a slack url and a new bot. Follow the instructions in and do the section on Create a new Bot in your slack organization.

It gives the most basic commands - none of the addons. The section after integrating with slack works except for the pug me section. I found that the hubot-catme section does work. And I didn't bother to understand the Jarvis part of the tutorial that talked about checking when a user was active last. I went on with the example coffee script from the norrisbot git repository.

This is the general hubot repository. It is worth looking at and following the using the file from Michikino Slackbot Tutorial [[BR]

Attachments (3)

Download all attachments as: .zip