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

fix typo #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion getting-started/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Once you have created an account and are logged in, create an app by clicking on

![Creating an app](https://github.com/Botfuel/tutorials/raw/master/getting-started/images/getting_started-create_app.png "Creating an app")

Give your app a namem, an optional description, and select a language.
Give your app a name, an optional description, and select a language.

The language determines what language your bot will understand. Under the hood, our NLP APIs behave differently based on the language you choose. You won’t be able to change it later, so choose carefully!

Expand Down
4 changes: 3 additions & 1 deletion weather-bot/weather-bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class MeteoView extends PromptView {
render(userMessage, { matchedEntities, missingEntities, weatherData }) {
const messages = [];

// On commencer par récupérer les valeurs extraites pour la ville et la date si ceux-ci ont été renseignés
// On commence par récupérer les valeurs extraites pour la ville et la date si celles-ci ont été renseignées
const location = matchedEntities.location && matchedEntities.location.values[0].value;
const date = matchedEntities.date && new Date(matchedEntities.date.values[0].milliseconds);

Expand Down Expand Up @@ -399,6 +399,7 @@ npm install node-fetch --save
Vous allez devoir appeler l'<a href="https://developer.worldweatheronline.com/api/docs/" target="_blank">API worldweatheronline</a> afin de récupérer les informations météorologiques.

```javascript
const fetch = require("node-fetch");
const response = await fetch(`http://api.worldweatheronline.com/premium/v1/weather.ashx?key=4cb957ddc2b84ab29a3151553181510&q=${location}&format=json&date=${formattedDate}&lang=fr`);
const data = await response.json();
const weatherData = data.data;
Expand All @@ -407,6 +408,7 @@ const response = await fetch(`http://api.worldweatheronline.com/premium/v1/weath
Commencez par récupérer les entités extraites dans `meteo-dialog.js` et pensez à vérifier que l'utilisateur a bien rentré toutes les informations nécessaires pour faire l'appel à l'API.

```javascript
const fetch = require("node-fetch");
class MeteoDialog extends PromptDialog {
async dialogWillDisplay(userMessage, { matchedEntities, missingEntities }) {
if (missingEntities.size === 0) {
Expand Down