We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbcdb2e commit 8ef758bCopy full SHA for 8ef758b
count-messages.ts
@@ -19,6 +19,12 @@ const GUILD_ID = `440163731704643589`;
19
const personalToken = getConfig('PERSONAL_TOKEN');
20
21
async function init() {
22
+ // Monday
23
+ if (new Date().getDay() !== 1) {
24
+ console.log('Not Monday – nothing to do here!');
25
+ process.exit(0);
26
+ }
27
+
28
const intents = new Intents([
29
Intents.NON_PRIVILEGED, // include all non-privileged intents, would be better to specify which ones you actually need
30
'GUILD_MEMBERS', // lets you request guild members (i.e. fixes the issue)
0 commit comments