Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Berard authored and nberard committed Jun 21, 2019
1 parent e959bc3 commit 7e36867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit 7e36867

Please sign in to comment.