diff options
| -rw-r--r-- | events/1312.js | 12 | ||||
| -rw-r--r-- | events/popehour.js | 12 | ||||
| -rw-r--r-- | package.json | 1 |
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" } } |
