Skip to content

Commit

Permalink
Merge pull request #158 from chr0m1ng/master
Browse files Browse the repository at this point in the history
Fix #84. Add this.webhook at bodyParser.use.
  • Loading branch information
Charca authored Nov 9, 2018
2 parents 3c44e8a + 997facb commit 8884e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BootBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BootBot extends EventEmitter {
this.app = express();
this.webhook = options.webhook || '/webhook';
this.webhook = this.webhook.charAt(0) !== '/' ? `/${this.webhook}` : this.webhook;
this.app.use(bodyParser.json({ verify: this._verifyRequestSignature.bind(this) }));
this.app.use(this.webhook, bodyParser.json({ verify: this._verifyRequestSignature.bind(this) }));
this._hearMap = [];
this._conversations = [];
}
Expand Down

0 comments on commit 8884e72

Please sign in to comment.