Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Implement config option for purge interval
Browse files Browse the repository at this point in the history
  • Loading branch information
kyogoi committed Oct 6, 2019
1 parent 1f3185c commit 84b1851
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config.json.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"token": "",
"purgeInterval": 1800000,
"emitLog": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mc-vc-bot",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Discord bot that handles the purging of linked voice and text channels",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
});

bot.once('ready', () => {
setInterval(purgeAll, 5000);
setInterval(purgeAll, config.purgeInterval);
});

bot.on('ready', () => {
Expand Down

0 comments on commit 84b1851

Please sign in to comment.