Skip to content

Commit

Permalink
Update core-Discord.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zeteticl committed Dec 26, 2023
1 parent 2f0cde6 commit 70b44e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/core-Discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
if (!process.env.DISCORD_CHANNEL_SECRET) {
return;
}
const DELAY = process.env.DISCORDDELAY || 1000 * 0;
const agenda = require('../modules/schedule') && require('../modules/schedule').agenda;
const channelSecret = process.env.DISCORD_CHANNEL_SECRET;
const { ClusterManager, HeartbeatManager } = require('discord-hybrid-sharding');
Expand Down Expand Up @@ -71,5 +72,5 @@ manager.extend(
})
)

manager.spawn({ timeout: -1, delay: 1000 * 20 });
manager.spawn({ timeout: -1, delay: DELAY });
//manager.recluster?.start({ restartMode: 'gracefulSwitch', totalShards: getInfo().TOTAL_SHARDS })

0 comments on commit 70b44e6

Please sign in to comment.