Skip to content

feat: the bot keeps an #addons channel under #rules listing the addons the guild requires and suggests - #4

Merged
JacobCoffee merged 3 commits into
mainfrom
feat/addons-channel
Nov 9, 2026
Merged

JacobCoffee merged 3 commits into
mainfrom
feat/addons-channel

Conversation

@JacobCoffee

Copy link
Copy Markdown
Contributor

Adds a read-only #addons channel, placed directly below #rules, that the bot keeps in sync every 10 minutes with the API's addon catalog: intro message plus one embed per non-empty AddonCategory, guild-made addons first, edited/posted/deleted idempotently so unchanged content is never reposted.

Depends on SideQuest-Guild/website#24 (commit b2f71c0d62093e26680aa15fac395223fe58dd95), which adds the sidequest-common addon schemas (AddonCategory, ADDON_CATEGORY_LABELS, AddonSchema) and the public GET /api/addons route this PR calls. pyproject.toml's [tool.uv.sources] is pinned to that commit.

  • api_client.py: list_addons() — GET /api/addons.
  • plugins/addons_channel.py: new cog, auto-loaded like every other plugin.
  • tests/test_addons_channel.py: 12 new tests (rendering order/grouping, channel creation + placement + overwrites, outside-guild no-op, idempotent re-sync, targeted edit on a changed summary, no-ping posts, empty-catalog no-op, NotFoundError/APIError resilience).
  • tests/fakes.py: extended make_channel with message history, .move(), and .edit()/.delete() support.
  • README.md: documents the channel alongside the other auto-managed channels.

make ci (ruff, ruff format, pyrefly, pytest — 999 passed) is clean.

@JacobCoffee
JacobCoffee merged commit 05532d3 into main Nov 9, 2026
8 checks passed
@JacobCoffee
JacobCoffee deleted the feat/addons-channel branch November 14, 2026 18:20
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.

1 participant