Skip to content

Auto-prune helpers #483

@Zabuzard

Description

@Zabuzard

Problem

This is somewhat urgent. Due to a technical limitation, our helper-role system breaks once a helper role has more than 100 users (usually the JAVA helper role).

It fails silently, probably an issue on Discord-end, not on ours. Anyways, we need to mitigate this problem until a proper solution has been found.

Solution

A way to do this is to automatically prune users from the role who have not posted messages for some time.

For a good UX, we should also attempt to DM the user in order to inform them what has happened. Such as

You seem to have been inactive for X, hence we removed you from the Y helper role. If that was a mistake, just head back to #active_questions and select the role again. Sorry for any inconvenience caused by this.

Also, this should only activate for roles that are actually approaching the 100-limit (so maybe as soon as they go beyond 90). So maybe create a Routine that runs every hour, checking the member count of all helper roles (get via Config), and if beyond 90, start pruning it.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issueGood for newcomerspriority: majorvalidThis issue/PR is validated and ready to be picked. This auto adds items to TJ project board.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions