-
-
Notifications
You must be signed in to change notification settings - Fork 101
Auto-close help thread if OP leaves server #497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for your contribution, and welcome to the project! |
(you can use interactive git rebase to change the author btw, not a big deal though) |
I think, u misread the problem. We want to close the help thread if the user leaves not delete it |
Fixed 👍 For some reason, I didn't think about archiving the thread and my mind just went to delete. Thanks for letting me know :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also y clear db after every 7 days y not remove each thread when it gets closed
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/help/LeaversPurgeDatabaseRoutine.java
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
application/src/main/resources/db/V11__Add_Help_Channel_Plus_Creator.sql
Outdated
Show resolved
Hide resolved
application/src/main/resources/db/V11__Add_Help_Channel_Plus_Creator.sql
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/commands/help/LeaversPurgeDatabaseRoutine.java
Outdated
Show resolved
Hide resolved
...tion/src/main/java/org/togetherjava/tjbot/commands/help/OnGuildLeaveCloseThreadListener.java
Outdated
Show resolved
Hide resolved
application/src/main/resources/db/V11__Add_Help_Channel_Plus_Creator.sql
Outdated
Show resolved
Hide resolved
Eventually, the database will require a complete purge regardless. I feel like it would help ease the transactions done in the DB if it were to only purge every 30 days. Also, note the database will also be used for other purposes so I think keeping it saved for 30 days would have no harm. Also, we need to take into account that any user is able to re-open the thread after it was closed which would complicate the process. I see no easy way to store the re-opened thread. |
Overview
Closes #480
When a user leaves the server, their help thread stays open. This leads to not only the waste of moderators' time when, but also leads to helpers contributing to nobody.
Details