Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This example doesn't work anymore, please update it #11

Open
Roman-Hahnair opened this issue Jun 8, 2020 · 0 comments
Open

This example doesn't work anymore, please update it #11

Roman-Hahnair opened this issue Jun 8, 2020 · 0 comments

Comments

@Roman-Hahnair
Copy link

After spending a massive amount of time trying to fix it, I've found a way to make it work.

I did the following:

  1. Complete the steps as described in the Option 1: Add to Dialogflow in the readme

  2. In the package.json, change the firebase admin version to:
    firebase-admin": "^6.0.0

  3. in the index.js, add the following lines after "use strict":

var admin = require('firebase-admin');
admin.initializeApp({
  credential: admin.credential.applicationDefault(),
  databaseURL: 'https://<DATABASE_NAME>.firebaseio.com'
});

No need to replace DATABASE_NAME with anything, just leave this string as it is.

I'm not sure if all of the additional steps are actually required. But my bot is now able to get the weaather.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant