GithubHelp home page GithubHelp logo

calbot's Introduction

Calbot 1.0 Deployment

Calbot is a light-weighted Facebook Messenger-based automated chatting bot. It can handle daily info lookup routines for Cal students and beyond. New features are actively being added.

Keep exploring. :)

Messenger

Usage

The commands listed below are subjected to changes and updates in the future. Please refer to this section as official.

Menu lookup

/** Menu lookup
* @param Hall Abbr: enum{'CR', 'FH', 'C3', 'CKC'}
* @return {Menu} or 'Menu not available'
*/
- You: Menu [Hall Abbr]
- Bot: Return the menu today at the dining hall specified

Installation

Development Workflow

Local Branch => Pull Request => Github => Cloud9 Deployment

Webhook & Credentials

  • WebhookURL: https://calbot-fongtinyik.c9users.io/webhook
  • ValidationToken: VERIFY_CALBOT
  • PageAccessToken: EAAJFZATPIZBNkBAAZC30riz6Y8sCBb1CZC2SkJIlRuihEcc9CLVxwQreByP1ljPsdznmTUktNLchmZCRmvNY6iJQMTGUWSpfMYpqod4mgzbnYkhTWsfsXyfQZAjEi0Vr97oA2YGZBe1Y8FcLtE3xZBj4ioIOQYxKI9qzv7q7sjpyJAZDZD
  • Secret: 0daa2960e5ec89b8228a8b9fe6caa344

Database Connection

        var connection = mysql.createConnection({
            host        :   'calbot2016.cz0u2urohrfo.us-west-2.rds.amazonaws.com',
            user        :   'fongtinyik',
            password    :   'calbot2016',
            database    :   'CalBot'
        });
        connection.connect(function(err) {
          if (err) console.log(err.code);
        });
        connection.query('SELECT * FROM users', function(err, rows, fields) {
            if (err) {
                console.log("Error connecting to db");
                console.log(err.code);
            } else {
                // Do something
            }
        });
        connection.end();

Issue Tracking (ITS)

  • Not yet deployed

TODO

  • CalDiding menu lookup
  • CalCentral OAuth
  • User location retrieval
  • Course info
  • CalFootboll

Authors

Tianyi Fang 🇨🇳

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.