Skip to content

Commit

Permalink
fit: add inactive check
Browse files Browse the repository at this point in the history
  • Loading branch information
hellos3b committed Oct 25, 2023
1 parent 6fe4a43 commit 2b56af6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/src/commands/fit/WorkoutEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ export const post = async (
}

// todo: enable after a week or so
// if (inactive (user)) {
// log.debug ("User has not posted in a while", { lastActive: user.lastActive });
// return new Error ("User has not posted recently");
// }
if (inactive (user)) {
log.debug ("User has not posted in a while", { lastActive: user.lastActive });
return new Error ("User has not posted recently");
}

const member = await Guild.member (user.discordId, client);
if (!member) {
Expand Down

0 comments on commit 2b56af6

Please sign in to comment.