Skip to content

feat(album): a TAWS section only club members see, joined with /taws - #170

Merged
SebasB76 merged 3 commits into
mainfrom
feat/album-taws
Nov 14, 2026
Merged

SebasB76 merged 3 commits into
mainfrom
feat/album-taws

Conversation

@SebasB76

Copy link
Copy Markdown
Owner

What

The album gets a TAWS section that only members of the TAWS club see. A member writes /taws on WhatsApp:

  • Vinci reads their name from Canvas, which only they can sign in to, and looks it up in the active members listed at taws.espol.edu.ec (/api/members). One match: they join at once and get a welcome pack of 3 TAWS cards.
  • No match, or more than one: the captain gets 🎴 <name> pide la sección TAWS del álbum… Si es del club: /taws acepta <name>, and his answer lets them in.

On the album page, members see an «Álbum | TAWS» switch at the top. Nobody else sees the switch, the club's cards or their silhouettes.

TAWS cards come only in club packs: the welcome pack, and espol-bot album-regalo "<reason>" --club taws, which goes out right away. That gift reads the member list again, so someone who left the site keeps their cards but gets no new ones. People the captain accepted stay members. Club cards never show up in regular packs, trades, the ranking or /canje.

The first 28 cards are drawn from the club's sticker pack.

Design notes

  • cards.json and the album's art key are public, or ride in every link. So the club's catalog is a separate encrypted file (docs/album/clubs/taws.bin), and it and its art are sealed with their own key, ALBUM_TAWS_KEY. Only a member's link carries that key. Neither the page's code nor the repo shows a member's card to anyone else.
  • Membership is a meta row (club:taws) in each person's espol.db. People waiting for the captain are kept in amigos/taws-pendientes.json.
  • Club cards are numbered separately, so the page leaves them out of the ranking's number→card map.

Needs ALBUM_TAWS_KEY in Coolify's variables (it is already in the captain's PC secrets.env). Without it, /taws says the section is not ready.

Docs: uso.md «La sección TAWS» and «Comandos», the whatsapp.md command table, funciones.md, problemas.md (the member list depends on the club's site), instalacion.md and servidor.md (the new key), secrets.env.example, the feature map, both SKILL.md, the album-card skill, and the E2E docstring.

…against the club's member list

/taws compares the sender's Canvas name with the active members on taws.espol.edu.ec; a match opens the
section with a welcome pack, anything else asks the captain, who answers /taws acepta <name>. Club cards live in
an encrypted catalog with their own key (ALBUM_TAWS_KEY), so only members' links can open them, and they come only
in club packs (album-regalo --club taws), never in regular packs, trades, the ranking or /canje. Adds the first 28
cards, drawn from the club's sticker pack.
Each club card is now «TAWS NºNN» with «Sticker TAWS» under it, instead of a caption per sticker.
@SebasB76
SebasB76 merged commit d33e9a1 into main Nov 14, 2026
1 check passed
@SebasB76
SebasB76 deleted the feat/album-taws branch November 14, 2026 22:44
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