Sweep reaction caches every 5 min
This commit is contained in:
10
main.js
10
main.js
@@ -1,9 +1,15 @@
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { Client, Collection, Events, GatewayIntentBits } = require('discord.js');
|
||||
const { Client, Collection, Events, GatewayIntentBits, Options } = require('discord.js');
|
||||
const { token } = require('./config.json');
|
||||
|
||||
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildPresences] });
|
||||
const client = new Client({
|
||||
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildPresences],
|
||||
sweepers: {
|
||||
...Options.DefaultSweeperSettings,
|
||||
reactions: { interval: 300, filter: () => () => { return true } }
|
||||
}
|
||||
});
|
||||
|
||||
client.commands = new Collection();
|
||||
const foldersPath = path.join(__dirname, 'commands');
|
||||
|
||||
Reference in New Issue
Block a user