| @@ -0,0 +1,14 @@ | ||
| import * as admin from 'firebase-admin' | ||
| import * as functions from 'firebase-functions' | ||
|
|
||
| // Firestore Database | ||
| const db = admin.firestore() | ||
|
|
||
| // `responses/` endpoint | ||
| export const responses = db.collection("responses") | ||
|
|
||
| // `survey/` endpoint | ||
| export const surveys = db.collection("surveys") | ||
|
|
||
| // `users/` endpoint | ||
| export const users = db.collection("users") |
| @@ -0,0 +1,14 @@ | ||
| <html> | ||
|
|
||
| <head> | ||
| <title>Facebook Messenger Bot</title> | ||
| </head> | ||
|
|
||
| <body> | ||
| <h1>Facebook Messenger Bot</h1>This is a bot based on Messenger Platform QuickStart. For more details, see their | ||
| <a href=\ "https://developers.facebook.com/docs/messenger-platform/guides/quick-start\">docs</a>. | ||
| <script src=\ "https://button.glitch.me/button.js\" data-style=\ "glitch\"></script> | ||
| <div class=\ "glitchButton\" style=\ "position:fixed;top:20px;right:20px;\"></div> | ||
| </body> | ||
|
|
||
| </html> |