Repository navigation
feat(album): a TAWS section only club members see, joined with /taws - #170
Merged
Merged
Conversation
…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.
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.
What
The album gets a TAWS section that only members of the TAWS club see. A member writes
/tawson WhatsApp:/api/members). One match: they join at once and get a welcome pack of 3 TAWS cards.🎴 <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.jsonand 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.club:taws) in each person's espol.db. People waiting for the captain are kept inamigos/taws-pendientes.json.Needs
ALBUM_TAWS_KEYin Coolify's variables (it is already in the captain's PC secrets.env). Without it,/tawssays the section is not ready.Docs:
uso.md«La sección TAWS» and «Comandos», thewhatsapp.mdcommand table,funciones.md,problemas.md(the member list depends on the club's site),instalacion.mdandservidor.md(the new key),secrets.env.example, the feature map, bothSKILL.md, thealbum-cardskill, and the E2E docstring.