Remove some unnecessary stuff in Client.js
- Remove message sweeping - shouldn't be needed with max cache size - Remove console spam about db compaction
This commit is contained in:
parent
f261e4e1d4
commit
9373980f94
|
@ -18,9 +18,7 @@ module.exports = class Client extends Discord.Client {
|
||||||
*/
|
*/
|
||||||
constructor(token, commandsDir, guildDataModel) {
|
constructor(token, commandsDir, guildDataModel) {
|
||||||
super({
|
super({
|
||||||
messageCacheMaxSize: 16,
|
messageCacheMaxSize: 16
|
||||||
messageCacheLifetime: 60,
|
|
||||||
messageSweepInterval: 480
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this._token = token;
|
this._token = token;
|
||||||
|
@ -100,6 +98,4 @@ function compactCollections() {
|
||||||
and camo is designed to work with both NeDB and MongoDB, which is presumably why it doesn't alraedy exist */
|
and camo is designed to work with both NeDB and MongoDB, which is presumably why it doesn't alraedy exist */
|
||||||
for (let collectionName of Object.keys(neDB._collections))
|
for (let collectionName of Object.keys(neDB._collections))
|
||||||
neDB._collections[collectionName].persistence.compactDatafile();
|
neDB._collections[collectionName].persistence.compactDatafile();
|
||||||
|
|
||||||
Util.dateLog("Executed compaction on loaded NeDB collections");
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue