mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 00:10:58 -05:00
It didn't put the reason, so useless.
This commit is contained in:
parent
e537522b0c
commit
f936d75489
@ -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`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user