Skip to content

Commit

Permalink
Add the automatic checkin posting
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-huff committed Feb 18, 2024
1 parent 3d64813 commit 1adc54b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/discordBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,11 @@ client.on("messageCreate", async (msg) => {
}
}
if (in_all_checkins) {
abbadabbabotSay(msg, "", "You checked in every time.");
abbadabbabotSay(msg, "", `Let ${msg.author.username} know they've hecked in every time. In just a sentence or less.`);
} else {
abbadabbabotSay(msg, "", "You haven't checked in each time.");
abbadabbabotSay(msg, "", `Let ${msg.author.username} know they've missed a checkin and have lost the game. In just a sentence or less.`);
}
}
const totalCheckins = Object.values(checkins).reduce((total, usernames) => total + usernames.length, 0);
msg.content = `The last checkin message has ${totalCheckins} checkins.`;
abbadabbabotSay(msg, "", `- ${totalCheckins} checkins`);
break;
}
}
Expand Down

0 comments on commit 1adc54b

Please sign in to comment.