From d656c68e75e90d98f0c3fd0539aa6f30ff8bfc6a Mon Sep 17 00:00:00 2001 From: abalabahaha Date: Sun, 7 Aug 2016 08:03:26 +0900 Subject: [PATCH] Add private message delete bucket --- lib/Client/InternalClient.js | 1 + lib/Util/TokenCacher-shim.js | 24 ++++++++++++------------ src/Client/InternalClient.js | 1 + 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/Client/InternalClient.js b/lib/Client/InternalClient.js index f192b9816..0e193fd80 100644 --- a/lib/Client/InternalClient.js +++ b/lib/Client/InternalClient.js @@ -254,6 +254,7 @@ var InternalClient = (function () { "bot:msg:dm": new _UtilBucket2["default"](5, 5000), "bot:msg:global": new _UtilBucket2["default"](50, 10000), "msg": new _UtilBucket2["default"](10, 10000), + "dmsg:undefined": new _UtilBucket2["default"](5, 1000), "username": new _UtilBucket2["default"](2, 3600000) }; diff --git a/lib/Util/TokenCacher-shim.js b/lib/Util/TokenCacher-shim.js index 53412d365..f483e9575 100644 --- a/lib/Util/TokenCacher-shim.js +++ b/lib/Util/TokenCacher-shim.js @@ -6,23 +6,23 @@ exports.__esModule = true; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var TokenCacher = (function () { - function TokenCacher() { - _classCallCheck(this, TokenCacher); - } + function TokenCacher() { + _classCallCheck(this, TokenCacher); + } - TokenCacher.prototype.setToken = function setToken() {}; + TokenCacher.prototype.setToken = function setToken() {}; - TokenCacher.prototype.save = function save() {}; + TokenCacher.prototype.save = function save() {}; - TokenCacher.prototype.getToken = function getToken() { - return null; - }; + TokenCacher.prototype.getToken = function getToken() { + return null; + }; - TokenCacher.prototype.init = function init(ind) { - this.done = true; - }; + TokenCacher.prototype.init = function init(ind) { + this.done = true; + }; - return TokenCacher; + return TokenCacher; })(); exports["default"] = TokenCacher; diff --git a/src/Client/InternalClient.js b/src/Client/InternalClient.js index c94379e40..e83f873b7 100755 --- a/src/Client/InternalClient.js +++ b/src/Client/InternalClient.js @@ -171,6 +171,7 @@ export default class InternalClient { "bot:msg:dm": new Bucket(5, 5000), "bot:msg:global": new Bucket(50, 10000), "msg": new Bucket(10, 10000), + "dmsg:undefined": new Bucket(5, 1000), "username": new Bucket(2, 3600000) };