mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-14 02:16:31 +00:00
fix(random): match the /gachabeta clip length to the 6-second beta wish
This commit is contained in:
1 parent
f44b8564eb
commit
f9526c4613
2 files changed
+3
-3
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user