From 9373980f9432566f1a7d456d1f70e30ed1bcb253 Mon Sep 17 00:00:00 2001 From: benji7425 Date: Sun, 14 Jan 2018 19:25:56 +0000 Subject: [PATCH] Remove some unnecessary stuff in Client.js - Remove message sweeping - shouldn't be needed with max cache size - Remove console spam about db compaction --- discord-bot-core/Client.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/discord-bot-core/Client.js b/discord-bot-core/Client.js index 6703ea0..9b39fbe 100644 --- a/discord-bot-core/Client.js +++ b/discord-bot-core/Client.js @@ -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"); } \ No newline at end of file