Skip to content

Commit 0763b8c

Browse files
author
Idan Harel
committed
Fixed README.md according to new changes
1 parent c6cf354 commit 0763b8c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Firstly, let's *import and configure* our bot:
4444
const ViberBot = require('viber-bot').Bot;
4545
const BotEvents = require('viber-bot').Events;
4646

47-
const bot = new ViberBot(logger, {
47+
const bot = new ViberBot({
4848
authToken: YOUR_AUTH_TOKEN_HERE,
4949
name: "EchoBot",
5050
avatar: "http://viber.com/avatar.jpg" // It is recommended to be 720x720, and no more than 100kb.
@@ -85,7 +85,7 @@ function createLogger() {
8585
}
8686

8787
const logger = createLogger();
88-
const bot = new ViberBot(logger, {
88+
const bot = new ViberBot({
8989
logger: logger,
9090
authToken: ...,
9191
...
@@ -141,7 +141,7 @@ An event emitter, emitting events [described here](#onEvent).
141141

142142
| Param | Type | Description |
143143
| --- | --- | --- |
144-
| logger | `object` | Winston logger |
144+
| options.logger | `object` | Winston logger |
145145
| options.authToken | `string` | Viber Auth Token |
146146
| options.name | `string` | Your BOT Name |
147147
| options.avatar | `string` | Avatar URL. **No more than 100kb.** |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "viber-bot",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "A bot interface to work with Viber API",
55
"author": "Viber LTD",
66
"engines": {

0 commit comments

Comments
 (0)