Skip to content

Commit

Permalink
Fixed README.md according to new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Idan Harel committed Dec 15, 2016
1 parent c6cf354 commit 0763b8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Firstly, let's *import and configure* our bot:
const ViberBot = require('viber-bot').Bot;
const BotEvents = require('viber-bot').Events;

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

const logger = createLogger();
const bot = new ViberBot(logger, {
const bot = new ViberBot({
logger: logger,
authToken: ...,
...
Expand Down Expand Up @@ -141,7 +141,7 @@ An event emitter, emitting events [described here](#onEvent).

| Param | Type | Description |
| --- | --- | --- |
| logger | `object` | Winston logger |
| options.logger | `object` | Winston logger |
| options.authToken | `string` | Viber Auth Token |
| options.name | `string` | Your BOT Name |
| options.avatar | `string` | Avatar URL. **No more than 100kb.** |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "viber-bot",
"version": "1.0.3",
"version": "1.0.4",
"description": "A bot interface to work with Viber API",
"author": "Viber LTD",
"engines": {
Expand Down

0 comments on commit 0763b8c

Please sign in to comment.