From 0981e2fb7807257d7f13ff926ae88a832ff5101b Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sat, 4 Jul 2015 15:48:07 +0430 Subject: [PATCH] setMaxListeners to 100, version to 0.4.2 --- build/index.js | 2 ++ lib/index.js | 2 ++ package.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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": {