Skip to content

Commit

Permalink
fix console spam
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Jul 15, 2024
1 parent 5a60c5f commit 3252a22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/HEARTBEAT/autopost.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async function main() {
// const shardID = channel.guild.shardId;
// if (currentShardID !== shardID) return;
const post = await client.functions.get('ENGINE_E621_autopost_getPictures').run(autoPost.tags, channel.guild.id, channelID, channel.nsfw);
if (!post) return console.warn(`[${currentShardID}] No pictures available for ${channelID}!`);
// tags, channelID, nsfw
postMessage(post, channel);
updateTime(channelID, currentTimestamp, autoPost.interval);
Expand Down

0 comments on commit 3252a22

Please sign in to comment.