Code Monkey home page Code Monkey logo

bot's Introduction

bot

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.

Setup

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).

Deploy

The bot is deployed using Heroku. To deploy your own:

  • heroku create, git push heroku master and heroku 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

Pi

Headless

1- Burn OS in your raspeberry pi SD card

  • 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

2- SSH configuration

  • 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 be raspberry
  • 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"
}
useful commands
  • list networks: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport -s
  • list devices on the network: arp -al

bot's People

Contributors

fif0o avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.