summary refs log tree commit diff
diff options
context:
space:
mode:
authorrubinowyblask <rubinowyblask@meow.li>2026-04-22 23:26:29 +0200
committerrubinowyblask <rubinowyblask@meow.li>2026-04-22 23:27:19 +0200
commitfbaf7466efed0f04920175dea98610afd15cc61d (patch)
treeff954ef66b298999580b19d2d4d609e9d46d054c
parent68ea97182ffb9478bddfe5bdcb27e134823a3894 (diff)
popehour and 1312 events HEAD nya
Signed-off-by: rubinowyblask <rubinowyblask@meow.li>
-rw-r--r--events/1312.js12
-rw-r--r--events/popehour.js12
-rw-r--r--package.json1
3 files changed, 25 insertions, 0 deletions
diff --git a/events/1312.js b/events/1312.js
new file mode 100644
index 0000000..2a54530
--- /dev/null
+++ b/events/1312.js
@@ -0,0 +1,12 @@
+const cron = require("node-cron");
+
+module.exports = {
+	name: 'clientReady',
+	async execute() {
+		cron.schedule("0 12 13 * * *", async () => {
+			await globalThis.client.channels.fetch("1259913084819210330");
+			globalThis.client.channels.cache.get("1259913084819210330").send("<@1425229394703683614> 13:12");
+		});
+	}
+}
+
diff --git a/events/popehour.js b/events/popehour.js
new file mode 100644
index 0000000..cf84b3d
--- /dev/null
+++ b/events/popehour.js
@@ -0,0 +1,12 @@
+const cron = require("node-cron");
+
+module.exports = {
+	name: 'clientReady',
+	async execute() {
+		cron.schedule("0 37 21 * * *", async () => {
+			await globalThis.client.channels.fetch("1259913084819210330");
+			globalThis.client.channels.cache.get("1259913084819210330").send("<@1425229394703683614> jp2gmd");
+		});
+	}
+}
+
diff --git a/package.json b/package.json
index e54b8ac..6aa1336 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
     "better-sqlite3": "^12.8.0",
     "discord.js": "14",
     "dotenv": "^17.3.1",
+    "node-cron": "^4.2.1",
     "pg": "^8.20.0"
   }
 }