From 55e1a759585b79a975eca390d31dd4308eec9e36 Mon Sep 17 00:00:00 2001 From: wolfy01 <45273698+wolfy01@users.noreply.github.com> Date: Tue, 7 Apr 2020 02:16:21 -0400 Subject: [PATCH] Update Client.js --- src/Client.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Client.js b/src/Client.js index 4081a1c..6527005 100644 --- a/src/Client.js +++ b/src/Client.js @@ -16,10 +16,13 @@ class Client extends EventEmitter { this.ip = (req.connection.remoteAddress).replace("::ffff:", ""); this.destroied = false; this.bindEventListeners(); - this.cursQuota = new RateLimit(16); - this.chatQuota = new RateLimitChain(4, 4000); - this.usersetQuota = new RateLimitChain(30, 30 * 60000); - this.crowned_chatQuota = new RateLimitChain(10, 2000); + this.quotas = { + chat: new RateLimitChain(4, 4000), + name: new RateLimitChain(30, 30 * 60000), + cursor: new RateLimit(16), + kickban: new RateLimitChain(2, 1000), + crowned_chat: new RateLimitChain(10, 2000) + } require('./Message.js')(this); } isConnected() {