Skip to content

Auto-free inactive help channels #392

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

Closed
Zabuzard opened this issue Feb 21, 2022 · 3 comments · Fixed by #419
Closed

Auto-free inactive help channels #392

Zabuzard opened this issue Feb 21, 2022 · 3 comments · Fixed by #419
Assignees
Labels
enhance command Modify or improve an existing command or group of commands of the bot priority: major

Comments

@Zabuzard
Copy link
Member

Overview

A help channel that has no activity for 2+ hours should automatically be marked free (as if using /free) by the system.

A small explanation message should also be posted, i.e. as if using /free. But maybe with some minor adjusted text like "was automatically marked free because ..." to explain the situation.

Alternative

Wait until we change our help system completely (thread/form based). But that might still take a couple of months and it would be nice to benefit from this low hanging fruit today already.

@Zabuzard Zabuzard added enhance command Modify or improve an existing command or group of commands of the bot priority: normal labels Feb 21, 2022
@Zabuzard Zabuzard added this to the Improvement phase 1 milestone Feb 21, 2022
@interacsion
Copy link
Contributor

How should that be implemented? a routine?

@Zabuzard
Copy link
Member Author

How should that be implemented? a routine?

Yes. A routine that is triggered maybe all 5 minutes, checks all busy help channels for their last message timestamp. If greater 2h, free it. Something like that, I guess.

@borgrel
Copy link
Contributor

borgrel commented Mar 28, 2022

the code is already written, its currently set to an hr but the values are static constants in the config class so its simple to change

the code already checks channel status on boot, that same method just needs to be called by the routine FreeCommand#checkBusyStatusAllChannels(jda)

it already puts the same "channel is available message" as using /free would and it already correctly sets the channel status.

its probably 7 lines of code to add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhance command Modify or improve an existing command or group of commands of the bot priority: major
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants