Describe the bug
Pinned messages/threads is a means to provide information in context of channel, but with current setup all threads are archived in questions regardless of state thus making this feature useless
Expected behavior
Bot should ignore pinned threads when archive routine is triggered
To Reproduce
- Tweak archive routine time from 12 hours to few minutes for testing on local setup
- Run local instance of bot
- create a thread in questions
- pin the thread
- wait for it to be archived
Additional context
-
HelpThreadAutoArchiver#shouldBeArchived method should skip threads which are pinned
-
HelpThreadAutoArchiver#shouldBeArchived should be moved before calling auto archive flow on each thread, it should skip threads using shouldBeArchived method

https://github.com/Together-Java/TJ-Bot/blob/develop/application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadAutoArchiver.java
Describe the bug
Pinned messages/threads is a means to provide information in context of channel, but with current setup all threads are archived in questions regardless of state thus making this feature useless
Expected behavior
Bot should ignore pinned threads when archive routine is triggered
To Reproduce
Additional context
HelpThreadAutoArchiver#shouldBeArchivedmethod should skip threads which are pinnedHelpThreadAutoArchiver#shouldBeArchivedshould be moved before calling auto archive flow on each thread, it should skip threads usingshouldBeArchivedmethodhttps://github.com/Together-Java/TJ-Bot/blob/develop/application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadAutoArchiver.java