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. :)
The commands listed below are subjected to changes and updates in the future. Please refer to this section as official.
/** 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
$ cd node
$ npm install
...
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
$ npm start
Node app is running on port 8080
Local Branch => Pull Request => Github => Cloud9 Deployment
- WebhookURL: https://calbot-fongtinyik.c9users.io/webhook
- ValidationToken:
VERIFY_CALBOT
- PageAccessToken:
EAAJFZATPIZBNkBAAZC30riz6Y8sCBb1CZC2SkJIlRuihEcc9CLVxwQreByP1ljPsdznmTUktNLchmZCRmvNY6iJQMTGUWSpfMYpqod4mgzbnYkhTWsfsXyfQZAjEi0Vr97oA2YGZBe1Y8FcLtE3xZBj4ioIOQYxKI9qzv7q7sjpyJAZDZD
- Secret:
0daa2960e5ec89b8228a8b9fe6caa344
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();
- Not yet deployed
- CalDiding menu lookup
- CalCentral OAuth
- User location retrieval
- Course info
- CalFootboll
Tianyi Fang 🇨🇳