Code-Society-Lab / Code-Society-Lab/grace

Kick all inactive users

Open
#95 0 comments 0 reactions 1 assignee Claimed by @PenguinBoi12 View on GitHub
feature not ready
Dominant language
Python
Stars
22
Forks
15
PR merge metrics
No merged PRs in 30d

Description

## Describe the feature
The goal is to remove all inactive users from the server via a simple command and later on via a scheduled task.

Here's the list of requirement one user must have to be considered inactive:
- [ ] Has no roles (except the ones automatically given when joining the server)
- [ ] Has been on the server for at least three months.
- [ ] Has sent less than 10 messages in the last month

When using the command, @Grace should show the number of people who will be kicked and then propose (via buttons) if we want to proceed or not.
- [ ] When pressing on `Ok`, all the listed users must be kicked from the server with a message that explains the reason.
- [ ] When pressing `Cancel`, the operation is cancelled and shows the issuer that the it did it successfully

**IMPORTANT**
This command **must** be available to **admin only**.

### Additional information
The function should be place somewhere where it can easily reused (perhaps in the `services` package) since it's going to be used by different part of @Grace (command and scheduler).

The command can simply be added to the `moderation_cog`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.