An app for monitoring game activity of members with Member Audit and Alliance Auth.
- Automatically notify users who become inactive.
- Automatically notify managers when users become inactive.
- Approval process for leave of absence requests
- Can inform managers about various events via Discord webhook
- List of inactive users
- Define through policies after how many days a user of absence a user is considered inactive
- Fetching the last login dates from Member Audit to determine how long a user has been inactive
Tip
Users are notified on Alliance Auth. If you want those notifications to be forwarded as DM on Discord, please check out this app: Discord Notify.
A user creating a new leave of absence request:
A manager reviewing a leave of absence request:
A manager looking through the list of currently inactive and notified users:
This app needs Member Audit to function. Please make sure it is installed before continuing.
Make sure you are in the virtual environment (venv) of your Alliance Auth installation. Then install the newest release from PyPI:
pip install aa-inactivityAdd inactivity to your INSTALLED_APPS, and add the following task definition:
CELERYBEAT_SCHEDULE['inactivity_check_inactivity'] = {
'task': 'inactivity.tasks.check_inactivity',
'schedule': crontab(minute=0, hour=0),
}Run migrations:
python manage.py migrate
python manage.py collectstaticRestart your supervisor services for Auth
This app uses permissions to control access to features.
| Name | Purpose | Code |
|---|---|---|
| general - Can access this app | Enabling the app for a user. This permission should be enabled for everyone who is allowed to use the app | basic_access |
| general - Can manage leave of absence requests | Allows a user to approve/deny loa requests. | manage_leave |
| Name | Description | Default |
|---|---|---|
INACTIVITY_NOTIFY_USER |
Whether inactive users receive a direct in-app notification. Disable this to stop users from being tipped off that they have been detected as inactive, e.g. to prevent them from logging in solely to dodge detection. | True |
INACTIVITY_TASKS_DEFAULT_PRIORITY |
Default priority for all tasks. | 6 |


