This project uses the Slack API (Events API) to offer a bot that performs a sentiment analysis.
OAuth route (/oauth
) has been implemented to share the app.
Instructions tp set up the bot (Slack API) are available in the ./app.js
file.
Replace BOT_NAME
with the name of your bot (req.body.event.username
).
The bot is deployed using Heroku. To deploy your own:
heroku create
,git push heroku master
andheroku open
- don't forget to update your environment variables
.env
and add them to your heroku app (terminal or Settings > Config Variables) - change the appropriate
redirect_url
,url_request
in your Slack app with the ones from your heroku app
- download your OS
- burn/flash your OS on the pi SD card using etcher
- put the SD card back in your device and switch it on
- add a
ssh
file in your bot - add a
wpa_supplicant.conf
file - you wpa file must have your network keys, see example below
- you should be ready to ssh your device:
ssh [email protected]
- default password will beraspberry
- additional settings for your raspberry pi can now be done:
sudo raspi-config
- don't forget to change your raspberrypi password once connected to the network
// wpa_supplicant.conf file example
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="yournetworkname"
psk="yournetworkpassword"
id_str="nameitwhatyouwant"
}
- list networks:
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport -s
- list devices on the network:
arp -al