1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 00:31:00 -05:00

It didn't put the reason, so useless.

This commit is contained in:
toast-ts 2024-02-26 21:02:51 +11:00
parent 9f2e944d48
commit f7e9a14d63

View File

@ -33,7 +33,7 @@ setInterval(async()=>{
for await (const thread of forum.threads.cache.values()) { for await (const thread of forum.threads.cache.values()) {
await thread.messages.fetch(); await thread.messages.fetch();
if (!thread.archived && thread.lastMessage.createdTimestamp <= Date.now() - 1555200000) {// check if thread is inactive for over 18 days if (!thread.archived && thread.lastMessage.createdTimestamp <= Date.now() - 1555200000) {// check if thread is inactive for over 18 days
await thread.delete('Thread has been inactive for 18 days'); await thread.delete();
Logger.console('log', 'ThreadTimer', `"#${thread.name}" has been deleted due to inactivity for 18 days`); Logger.console('log', 'ThreadTimer', `"#${thread.name}" has been deleted due to inactivity for 18 days`);
} }
} }