Skip to content

Commit

Permalink
Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
SlavyanDesu committed Feb 16, 2021
1 parent 0bfc8ed commit a3689d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const start = (bocchi = new Client()) => {
})

bocchi.onMessage((message) => {
// Uncomment this code below for activating an automated cache deletion
/*
bocchi.getAmountOfLoadedMessages()
.then((msg) => {
if (msg >= 1000) {
Expand All @@ -50,6 +52,7 @@ const start = (bocchi = new Client()) => {
console.log(color('[BOCCHI]'), color('Cache deleted!', 'yellow'))
}
})
*/
require('./message/index.js')(bocchi, message)
})

Expand Down

0 comments on commit a3689d6

Please sign in to comment.