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:
benji7425 2018-01-14 19:25:56 +00:00
parent d452569ad1
commit 7b7645cb5e
1 changed files with 1 additions and 5 deletions

View File

@ -18,9 +18,7 @@ module.exports = class Client extends Discord.Client {
*/
constructor(token, commandsDir, guildDataModel) {
super({
messageCacheMaxSize: 16,
messageCacheLifetime: 60,
messageSweepInterval: 480
messageCacheMaxSize: 16
});
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 */
for (let collectionName of Object.keys(neDB._collections))
neDB._collections[collectionName].persistence.compactDatafile();
Util.dateLog("Executed compaction on loaded NeDB collections");
}