From 4233494649e7a6ace90e831073d9d337f125e69b Mon Sep 17 00:00:00 2001 From: Robert Koenig Date: Sat, 12 Feb 2022 13:43:18 -0800 Subject: [PATCH] Recommendations by @moosecrap and @tks_ftw --- bot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 979d418..f46f157 100644 --- a/bot.js +++ b/bot.js @@ -70,6 +70,9 @@ client.on('message', async message => { console.log(`Message from Unauthorized Guild ${message.guild.name}!`); return; } + // Pre-Work + // Do a few things that may be helpful + const d = new Date(); // Process Section // Check for the shutup message if (message.content === "~") { @@ -97,7 +100,7 @@ client.on('message', async message => { switch(message.content) { case "daytona": case "e": - if (Math.random() < 0.8) return; + if ([0,5,6].includes(d.getDay()) && Math.random() < 0.8) return; default: } }