Repository navigation
v0.4.0 — Account linking
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 asecrets.token_hex(32)token, registers it in Quest Board's Redis viaPOST /api/bot/linking-tokens(TTL 10 min), sends the user a DM with{questboard_public_url}/auth/link?token=<token>, then pollsGET /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; handlesdiscord.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 indocs/questboard-improvements.md(Priority 3)