Skip to content

Commit

Permalink
moved up
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Dec 23, 2023
1 parent 98867fb commit 8ece31f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions functions/SETUP/heartbeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module.exports.run = async () => {

if (DEBUG) return;
LOG(`[${module.exports.data.name}] Start sending heartbeats...`);
// uptime page
client.functions.get('HEARTBEAT_uptime').run();

// botlists
const guildCountsArr = await client.shard.fetchClientValues('guilds.cache.size');
const guildCount = guildCountsArr.reduce((previousCount, currentCount) => previousCount + currentCount, 0);
Expand All @@ -16,8 +19,6 @@ module.exports.run = async () => {
client.functions.get('HEARTBEAT_BOTLIST_discords').run(guildCount);
client.functions.get('HEARTBEAT_BOTLIST_discordbots').run(guildCount);
client.functions.get('HEARTBEAT_BOTLIST_motiondevelopment').run(guildCount);
// uptime page
client.functions.get('HEARTBEAT_uptime').run();
};

module.exports.data = {
Expand Down

0 comments on commit 8ece31f

Please sign in to comment.