Skip to content

v0.4.0 — Account linking

Choose a tag to compare

@10thTARDIS 10thTARDIS released this 15 Mar 23:43
· 15 commits to main since this release

Discord account linking. Players can connect their Discord identity to Quest Board so that emoji reactions on session messages are recorded as votes against their Quest Board account.

Changed

  • bot/cogs/linking.py — full implementation replacing the v0.1.0 stub:
    • /link — generates a secrets.token_hex(32) token, registers it in Quest Board's Redis via POST /api/bot/linking-tokens (TTL 10 min), sends the user a DM with {questboard_public_url}/auth/link?token=<token>, then polls GET /api/bot/link-status/{token} every 30 s for up to 10 min; sends a confirmation DM on success or an expiry DM on timeout; handles discord.Forbidden (DMs disabled) and Quest Board API errors gracefully
    • /unlink — directs the user to their Quest Board profile page; a dedicated bot-facing unlink endpoint is tracked in docs/questboard-improvements.md (Priority 3)