fix: compute work hours from events at runtime; add Achievements button to RPG view
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user