From f9526c46131fe27b60df5241a22922d0ff5349c2 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Thu, 1 Oct 2026 18:22:32 +0700 Subject: [PATCH] fix(random): match the /gachabeta clip length to the 6-second beta wish --- internal/modules/random/gacha_api_client.go | 2 +- internal/modules/random/gacha_command_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/modules/random/gacha_api_client.go b/internal/modules/random/gacha_api_client.go index a3c6409..f4eb21f 100644 --- a/internal/modules/random/gacha_api_client.go +++ b/internal/modules/random/gacha_api_client.go @@ -24,7 +24,7 @@ type gachaStyle struct { var ( gachaStyleWish = gachaStyle{Path: "gacha", Duration: 7} - gachaStyleBeta = gachaStyle{Path: "gachabeta", Duration: 11} + gachaStyleBeta = gachaStyle{Path: "gachabeta", Duration: 6} ) type gachaAPIRequest struct { diff --git a/internal/modules/random/gacha_command_test.go b/internal/modules/random/gacha_command_test.go index e54e2ff..2f9c306 100644 --- a/internal/modules/random/gacha_command_test.go +++ b/internal/modules/random/gacha_command_test.go @@ -208,8 +208,8 @@ func TestGachaBeta_UsesBetaRendererAndAnyoneCanRunIt(t *testing.T) { if animation == nil { t.Fatalf("calls = %+v, want a sendAnimation", rb.Sent()) } - if got := animation.Form["duration"]; got != "11" { - t.Fatalf("duration = %q, want 11", got) + if got := animation.Form["duration"]; got != "6" { + t.Fatalf("duration = %q, want 6", got) } }