From f1f8749ee8881eb51b89323e23d53575e6b11292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Tue, 7 Nov 2023 15:33:21 +0100 Subject: [PATCH] Live config for cleanup task --- timers/cleanupMessages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timers/cleanupMessages.js b/timers/cleanupMessages.js index ef4045c..2c5624f 100644 --- a/timers/cleanupMessages.js +++ b/timers/cleanupMessages.js @@ -3,11 +3,11 @@ module.exports = { immediate: true, name: 'Cleanup tasks', async tick(client, timer) { - const channelId = '1171410849269809232'; + const channelId = '1170190197384814762'; const channel = await client.channels.fetch(channelId); + console.log(`Running cleanup task for ${channel.guild.name}/${channel.name}`); channel.messages.fetch({ limit: 100 }).then(messages => { - console.log(`Received ${messages.size} messages`); //Iterate through the messages here with the variable "messages". messages.forEach(message => { if(message.attachments.size > 0) {