Skip to content

Commit

Permalink
🧹 Add sweepers (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusOtter authored May 17, 2022
1 parent ae065e5 commit b60aa5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
// Initial load of all commands
await getOrLoadAllCommands(false);

const sweepSettings = {
interval: 14400, // 4h
lifetime: 3600, // 1h
};

const CLIENT = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
presence: {
Expand All @@ -53,6 +58,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
},
],
},
sweepers: {
messages: sweepSettings,
threads: sweepSettings,
},
});

CLIENT.once("ready", () => {
Expand Down

0 comments on commit b60aa5c

Please sign in to comment.