From 164daf37f134ea2578a0ce59d5587005b8861480 Mon Sep 17 00:00:00 2001 From: "Thanvi, Karan | Styocho | PAYSD" Date: Mon, 20 Aug 2018 22:45:38 +0900 Subject: [PATCH 1/3] specify dependency version to work --- docs/TUTORIAL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/TUTORIAL.md b/docs/TUTORIAL.md index a901a37..a1ae8c5 100644 --- a/docs/TUTORIAL.md +++ b/docs/TUTORIAL.md @@ -73,7 +73,7 @@ npm init Now let’s install our dependencies: ```bash -npm i --save viber-bot express request winston winston-console-formatter +npm i --save viber-bot express request winston@2.4.0 winston-console-formatter@0.3.1 ``` Here’s the content of the package.json: @@ -92,7 +92,7 @@ Here’s the content of the package.json: "express": "4.13.4", "request": "^2.79.0", "viber-bot": "^1.0.6", - "winston": "^2.3.0", + "winston": "^2.4.0", "winston-console-formatter": "^0.3.1" }, "license": "ISC" From dff6e2bf8943e19d575eed4baade3f1215116c11 Mon Sep 17 00:00:00 2001 From: "Thanvi, Karan | Styocho | PAYSD" Date: Mon, 20 Aug 2018 22:47:38 +0900 Subject: [PATCH 2/3] start script for now/heroku --- docs/TUTORIAL.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/TUTORIAL.md b/docs/TUTORIAL.md index a1ae8c5..559b880 100644 --- a/docs/TUTORIAL.md +++ b/docs/TUTORIAL.md @@ -85,7 +85,8 @@ Here’s the content of the package.json: "description": "A bot interface to work with Viber API", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node index.js" }, "author": "", "dependencies": { From 69ac4ce99f5f3de9579a6a8711fe90f5879665cc Mon Sep 17 00:00:00 2001 From: "Thanvi, Karan | Styocho | PAYSD" Date: Mon, 20 Aug 2018 22:48:26 +0900 Subject: [PATCH 3/3] add missing bracket --- docs/TUTORIAL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/TUTORIAL.md b/docs/TUTORIAL.md index 559b880..992c633 100644 --- a/docs/TUTORIAL.md +++ b/docs/TUTORIAL.md @@ -198,7 +198,7 @@ Finally, we'd like to direct any text message to the `checkUrlAvailability` func ```javascript bot.onTextMessage(/./, (message, response) => { checkUrlAvailability(response, message.text); -} +}) ``` ## Deployment