Browse Source

Remove some unnecessary stuff in Client.js

- Remove message sweeping - shouldn't be needed with max cache size
- Remove console spam about db compaction
shorten
benji7425 3 years ago
parent
commit
7b7645cb5e
  1. 6
      discord-bot-core/Client.js

6
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");
}
Loading…
Cancel
Save