Code Monkey home page Code Monkey logo

oswald's Introduction

Oswald

A slack bot for Stevens Ultimate

Installation

  1. $ npm install
  2. Get Slack API token and add it to the credentials folder in a file called slackToken.json formatted as {"token":"[token]"}
  3. Get Google calendar client secret and add it to the credentials folder as a file called client_secret.json
  4. $ npm start

Notes

For google calendar client secret, follow these steps: https://developers.google.com/calendar/quickstart/nodejs For slack api, create the app and then navigate to OAuth and permissions. Then use Bot User OAuth access token Then it should work. For AWS setup with nodejs, follow this: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html please use ubuntu server for AWS - it is so much easier to work with for node and npm

screen node app.js see this for more details

cronjobs (automatic updates):

  • install postfix: sudo apt-get install postfix
  • edit: crontab -e
  • (run as sudo su)
  • edit permissions: sudo chmod 777 .git
  • service: sudo service cron start | status | restart
  • cronjob for updating git repo every hour:
  • 0 * * * * su -s /bin/sh root -c 'cd /home/joshuatorwebsite/torwebsite && git pull origin master'
  • every minute:
  • */1 * * * *
  • 0 * * * * su -s /bin/sh root -c 'cd /home/stevensultimateducks/Oswald && git pull origin master && node app.js'

oswald's People

Contributors

jschmidtnj avatar jonahmania avatar keyurved avatar

Stargazers

 avatar

Watchers

James Cloos 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.