Skip to content

feat(discord_bot): replace ban_list embeds with file attachments#142

Merged
extreme4all merged 1 commit into
developfrom
feat/ban-list-file-output
May 15, 2026
Merged

feat(discord_bot): replace ban_list embeds with file attachments#142
extreme4all merged 1 commit into
developfrom
feat/ban-list-file-output

Conversation

@extreme4all-ai
Copy link
Copy Markdown
Contributor

Summary

  • Replaces the paginated embed output in ban_list with two .txt file attachments ({epoch}_banned.txt, {epoch}_not_banned.txt) and a summary embed with total/banned/not-banned counts
  • Adds early return when no valid players are found, and temp directory cleanup via shutil.rmtree in a try/finally
  • Adds 12 tests covering partitioning, file content, naming, edge cases, and cleanup

Test plan

  • uv run pytest test/bases/bot_detector/discord_bot/test_ban_list.py — 12/12 passing
  • uv run ruff check — all checks passed
  • uv run ruff format --check — all files formatted

Replace paginated embeds with two .txt file attachments (banned/not_banned)
named by epoch timestamp, plus a summary embed with counts. Add early return
for empty player list and temp dir cleanup.
@extreme4all extreme4all merged commit dc10c56 into develop May 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants