Skip to content

Commit

Permalink
fixed ping
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Mar 15, 2024
1 parent 2b3310b commit 7538016
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions functions/ENGINE/checkin/COMPONENT/button/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ module.exports.run = async (interaction) => {
// ping team, once
const messages = await interaction.channel.messages.fetch();
const botMessages = messages.filter((message) => message.author.id === client.user.id);
if (botMessages.length >= 1) return;
console.log(botMessages);
console.log(botMessages.length);
// interaction.channel.send(`<@&${config.teamRole}>`);
if (botMessages.size >= 2) return;
interaction.channel.send(`<@&${config.teamRole}>`);

// gray out button
interaction.message.edit({ components: [buttons] });
Expand Down

0 comments on commit 7538016

Please sign in to comment.