Jay's Army Tools for Alliance Auth
aa-jays-tools is an Alliance Auth plugin that currently provides:
- Discord recruiter helper commands (via
allianceauth-discordbotcogs) - Secure Groups smart filters for recruitment activity and low skill points
Contents
- Overview
- Features
- Requirements
- Installation
- Configuration
- Smart filters
- Discord recruiter cog
- Development
- Changelog
Overview
This plugin extends Alliance Auth with small operational tools used by Jay's Army workflows.
It integrates through Alliance Auth hooks in jaystools/auth_hooks.py and keeps optional integrations guarded by install checks.
Features
- Registers a Discord cog (
jaystools.cogs.me_recruter) through thediscord_cogs_hook - Registers Secure Groups smart filters through
secure_group_filterswhensecuregroupsis installed - Provides a
RecruitmentFilterbased on approved HR applications in a configurable time window - Provides a
CharacterSkillPointFilter(whenmemberauditis installed) to match users below a skillpoint threshold
Requirements
- Alliance Auth 4.x
allianceauth-discordbot(optional, required for Discord cog usage)allianceauth-secure-groups(optional, required for smart filters)aa-memberaudit(optional, required forCharacterSkillPointFilter)
Installation
1 - Install the package
pip install aa-jays-tools
2 - Add app to Alliance Auth
Add jaystools to INSTALLED_APPS in your local.py:
INSTALLED_APPS += [
"jaystools",
]
3 - Run migrations and collect static files
python manage.py migrate
python manage.py collectstatic
4 - Restart services
Restart web and worker processes so hooks and app registration are loaded.
Configuration
Required settings for Discord recruiter cog
If you use the recruiter cog, define these settings in your host AA local.py:
# Command scope (single guild or list)
DISCORD_GUILD_ID = "1234567890"
# DISCORD_GUILD_IDS = [1234567890, 9876543210]
# Recruiter workflow channels/roles
RECRUIT_CHANNEL_ID = 123456789012345678
RECRUITER_GROUP_ID = 987654321098765432
jaystools.app_settings.get_all_servers() merges DISCORD_GUILD_IDS and DISCORD_GUILD_ID for command registration.
Optional integration behavior
- If
securegroupsis not installed, no smart filter hook is exported. - If
memberauditis not installed,CharacterSkillPointFilteris not exported.
Smart filters
RecruitmentFilter
Model: jaystools.models.smart_filters.RecruitmentFilter
Checks whether a user approved at least recruitments_needed HR applications within the last days.
CharacterSkillPointFilter
Model: jaystools.models.smart_filters.CharacterSkillPointFilter
Available only with memberaudit installed. Matches users with at least one character at or below sp_threshold.
Can optionally ignore alts (ignore_alts=True) and evaluate mains only.
Discord recruiter cog
Cog module: jaystools.cogs.me_recruter
Registered commands include:
- slash command:
me_recruter - message context command:
Créer un fil de recrutement - user context command:
Me Recruter
Each command creates a private recruitment thread in RECRUIT_CHANNEL_ID and pings RECRUITER_GROUP_ID.
Development
This repository includes a standard Alliance Auth plugin test layout:
tox.iniruntests.pytestauth/jaystools/tests/
Run tests:
python -u runtests.py jaystools.tests -v 2
Run lint:
pylint jaystools
If tox is installed:
tox -e py312-django42
tox -e pylint
Changelog
See CHANGELOG.md.
Metadata
Release files for aa-jays-tools 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aa_jays_tools-1.0.7.tar.gz | 26.5 kB | With provenance | Details for aa_jays_tools-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aa_jays_tools-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for aa_jays_tools-1.0.7-py3-none-any.whl |
Total release size: 64.9 kB
Release files / aa_jays_tools-1.0.7.tar.gz
| Download URL | aa_jays_tools-1.0.7.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7f575ad52feaa23309b5c7d17413e843e8f2d5394493ee0739e8a212b2c75ff
|
|
BLAKE2b-256 checksum How to use checksums |
09c52987d66f29f9f2d2217cdc239336f7f78bba7fcb9d5730244db424ff04b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logRelease files / aa_jays_tools-1.0.7-py3-none-any.whl
| Download URL | aa_jays_tools-1.0.7-py3-none-any.whl |
|---|---|
| Size | 38.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6730d5a5bd14fc69fde6f0645791375279aae30cc62cdd43a3032811385c0b69
|
|
BLAKE2b-256 checksum How to use checksums |
23bd29f53279560f036e211d109320b83434a2779e3ab68a3ac8c0d82ea6c394
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logSecurity for aa-jays-tools 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for aa_jays_tools-1.0.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.