Skip to content

Commit 7e36867

Browse files
Nicolas Berardnberard
authored andcommitted
fix typo
1 parent e959bc3 commit 7e36867

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

getting-started/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Once you have created an account and are logged in, create an app by clicking on
4848

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

51-
Give your app a namem, an optional description, and select a language.
51+
Give your app a name, an optional description, and select a language.
5252

5353
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!
5454

weather-bot/weather-bot.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ class MeteoView extends PromptView {
359359
render(userMessage, { matchedEntities, missingEntities, weatherData }) {
360360
const messages = [];
361361

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

@@ -399,6 +399,7 @@ npm install node-fetch --save
399399
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.
400400

401401
```javascript
402+
const fetch = require("node-fetch");
402403
const response = await fetch(`http://api.worldweatheronline.com/premium/v1/weather.ashx?key=4cb957ddc2b84ab29a3151553181510&q=${location}&format=json&date=${formattedDate}&lang=fr`);
403404
const data = await response.json();
404405
const weatherData = data.data;
@@ -407,6 +408,7 @@ const response = await fetch(`http://api.worldweatheronline.com/premium/v1/weath
407408
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.
408409

409410
```javascript
411+
const fetch = require("node-fetch");
410412
class MeteoDialog extends PromptDialog {
411413
async dialogWillDisplay(userMessage, { matchedEntities, missingEntities }) {
412414
if (missingEntities.size === 0) {

0 commit comments

Comments
 (0)