Repository navigation
feat: the bot keeps an #addons channel under #rules listing the addons the guild requires and suggests - #4
Merged
Merged
Conversation
…s the guild requires and suggests
…ost when its text changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a read-only
#addonschannel, 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-emptyAddonCategory, guild-made addons first, edited/posted/deleted idempotently so unchanged content is never reposted.Depends on SideQuest-Guild/website#24 (commit
b2f71c0d62093e26680aa15fac395223fe58dd95), which adds thesidequest-commonaddon schemas (AddonCategory,ADDON_CATEGORY_LABELS,AddonSchema) and the publicGET /api/addonsroute 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: extendedmake_channelwith 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.