From 1adc54b76ced6f06b2ef66dd5b4d0d733d099f9f Mon Sep 17 00:00:00 2001 From: Kevin Huff Date: Sun, 18 Feb 2024 00:49:49 -0600 Subject: [PATCH] Add the automatic checkin posting --- src/discordBot.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/discordBot.js b/src/discordBot.js index 3fef48b..182ccfe 100644 --- a/src/discordBot.js +++ b/src/discordBot.js @@ -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; } }