Update Client.js

This commit is contained in:
wolfy01 2020-04-07 02:16:21 -04:00 committed by GitHub
parent 6129f8f161
commit 55e1a75958
1 changed files with 7 additions and 4 deletions

View File

@ -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() {