diff --git a/build/index.js b/build/index.js index cd367c4..83dbd71 100644 --- a/build/index.js +++ b/build/index.js @@ -69,6 +69,8 @@ var Bot = (function (_EventEmitter) { // EventEmitter this._events = {}; this._userEvents = []; + + this.setMaxListeners(100); } _inherits(Bot, _EventEmitter); diff --git a/lib/index.js b/lib/index.js index fe752a2..7803e4b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -38,6 +38,8 @@ export default class Bot extends EventEmitter { // EventEmitter this._events = {}; this._userEvents = []; + + this.setMaxListeners(100); } /** diff --git a/package.json b/package.json index 3c484d9..f7b5d11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "telegram-api", - "version": "0.4.1", + "version": "0.4.2", "description": "Control Telegram bots easily using the new Telegram API", "main": "index.js", "scripts": {