feat: enforce RPG dependency for League — cannot enable League without RPG

- handleSelectCallback: disabling RPG also disables League; enabling
  League when RPG is off shows toast error via answerCbWithText
- handleLeagueToggleCmd (/leaguetoggle): rejects with message if RPG off
- leagueToggleCallback (inline): rejects with message if RPG off
- buildSettingsKeyboard: League status shows as 'off' when RPG is disabled
  (even if the DB still has LeagueOptIn=true, since RPG disable forces it false)
This commit is contained in:
2026-06-25 09:19:03 +03:30
parent 80de661f5b
commit b822068f0a
2 changed files with 29 additions and 4 deletions

View File

@@ -214,7 +214,7 @@ func (h *Handler) HandleMessage(ctx context.Context, msg *models.Message) {
case "/rpgtoggle":
h.handleRPGSettingsMsg(ctx, msg)
case "/leaguetoggle":
h.handleLeagueSettingsMsg(ctx, msg)
h.handleLeagueToggleCmd(ctx, msg)
case "/setusername":
h.handleSetUsername(ctx, msg)
default: