fix: compute work hours from events at runtime; add Achievements button to RPG view

This commit is contained in:
2026-06-25 02:08:33 +03:30
parent 85587d563d
commit 4fcb694418
3 changed files with 104 additions and 9 deletions

View File

@@ -198,7 +198,7 @@ func (h *Handler) HandleMessage(ctx context.Context, msg *models.Message) {
case "/setbreak":
h.handleSetBreakMsg(ctx, msg)
case "/rpg":
h.handleActionMsg(ctx, msg, h.rpgStatus)
h.handleRPGCmd(ctx, msg)
case "/achievements":
h.handleActionMsg(ctx, msg, h.achievementsList)
case "/salary":
@@ -298,6 +298,10 @@ func (h *Handler) HandleCallback(ctx context.Context, cb *models.CallbackQuery)
h.leagueToggleCallback(ctx, chatID, msgID, cb.ID)
case "reporttoggle":
h.reportToggleCallback(ctx, chatID, msgID, cb.ID)
case "rpg_achievements":
h.rpgAchievementsCallback(ctx, chatID, msgID, cb.ID)
case "rpg_back":
h.rpgBackCallback(ctx, chatID, msgID, cb.ID)
case "username":
h.usernameCallback(ctx, chatID, msgID, cb.ID)
case "currency":