Skip to content

Commit

Permalink
fix(perf): don’t enable shards: 'auto': broke the whole bot
Browse files Browse the repository at this point in the history
  • Loading branch information
tippfehlr committed Mar 10, 2024
1 parent 1694a9a commit 2192919
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/modules/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const client = new Discord.Client({
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildPresences,
],
shards: 'auto',
makeCache: Options.cacheWithLimits({
...Options.DefaultMakeCacheSettings,
MessageManager: 0,
Expand All @@ -40,17 +39,17 @@ export const client = new Discord.Client({
sweepers: {
...Options.DefaultSweeperSettings,
users: {
interval: 30 * 60, // 30 minutes
interval: 60 * 60, // in seconds, 1 hour
filter: () => user => user.id !== user.client.user.id, // don’t remove the client’s user
},
guildMembers: {
interval: 30 * 60,
interval: 60 * 60,
filter: () => member => member.id !== member.client.user.id,
},
presences: {
interval: 30 * 60,
filter: () => () => true, // remove all presences
},
// presences: {
// interval: 60 * 60,
// filter: () => () => true, // remove all presences
// },
},
});

Expand Down

0 comments on commit 2192919

Please sign in to comment.