Skip to content

Commit

Permalink
perf(bot): add message sweeping & cache options to decrease mem usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevillamartin committed Apr 15, 2017
1 parent 82fe8ab commit 93d1900
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Discord/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ const bot = new Client({
],
prefix: '',
owner: '175008284263186437',
messageCacheMaxSize: 1,
messageCacheLifetime: 300,
messageSweepInterval: 300,
});
const TOKEN = process.env.DISCORD_TESTING_BOT_TOKEN || process.env.YAPPY_GITLAB_DISCORD;

Expand Down

0 comments on commit 93d1900

Please sign in to comment.