fix(random): describe /gachabeta generically and match its new length

The beta renderer changed style, so /gachabeta now reads "Gacha (beta
version)" in its command description, package doc, README row, and deploy
guide instead of naming one look. The clip length sent to Telegram is 11
seconds to match the renderer's 10.5-second beta animation.
This commit is contained in:
tiennm99 committed 2026-10-01 16:44:16 +07:00
1 parent f75c0e560b
commit 25eb1414d4
6 files changed
+12 -13

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ Atlas via long polling and an in-process cron scheduler.
|---|---|
| `util` | `/help`, `/info` (admin), `/stickerid` (owner) |
| `misc` | `/ping`, `/ping_stats` (admin), `/ff` (admin), `/xlt1`, `/giaxang` (Petrolimex retail fuel prices), `/the_answer` (owner), `/trongtruonghop` + `/tth`, `/trongtruonghopvng` + `/tthvng` disclaimers |
| `random` | Pick one comma-separated option at random: `/random` (text), `/wheelofnames` (wheel GIF), `/gacha` (Genshin-style wish; options are 5★ by default, prefix `4*` or `3*`), `/gachabeta` (unlisted; toon-shaded beta wish with S/SS/SSS ranks). The animations use the optional wheelofnames renderer |
| `random` | Pick one comma-separated option at random: `/random` (text), `/wheelofnames` (wheel GIF), `/gacha` (Genshin-style wish; options are 5★ by default, prefix `4*` or `3*`), `/gachabeta` (unlisted; beta version of `/gacha`). The animations use the optional wheelofnames renderer |
| `amlich` | Vietnamese lunar calendar: `/amlich` (dương lịch → âm lịch, defaults to today), `/duonglich` (âm lịch → dương lịch, `nhuan` flag for leap months); dates accept `d`, `d/m`, or `d/m/yyyy` — missing parts fill from today in the input's calendar. Years 1800–2199 only |
| `wordle` | Daily Wordle game: `/wordle [word]`, `/wordle_new`, `/wordle_giveup`, `/wordle_stats` |
| `loldle` | League-of-Legends "guess the champion": `/loldle [champion]`, `/loldle_giveup`, `/loldle_stats`, `/loldle_setmax` (owner) |
+3 -4
View File
@@ -93,10 +93,9 @@ option is equally likely, as with `/random`; the rarity only sets what the
animation and reply show. Options are 5★ by default; prefix `4*` or `3*` to
lower one, e.g. `/gacha Pizza, 4* Pho, 3* Rice`.
The unlisted `/gachabeta` takes the same input and renders the 8-second beta
style from `.../api/gachabeta` on the same service (a toon-shaded sky, a comet
bursting through a cloud, and an `S`/`SS`/`SSS` rank for 3★/4★/5★), with the
same text fallback.
The unlisted `/gachabeta` takes the same input and renders the beta version
of the wish from `.../api/gachabeta` on the same service, with the same text
fallback.
## 1. MongoDB Atlas (M0)
+1 -1
View File
@@ -24,7 +24,7 @@ type gachaStyle struct {
var (
gachaStyleWish = gachaStyle{Path: "gacha", Duration: 7}
gachaStyleBeta = gachaStyle{Path: "gachabeta", Duration: 8}
gachaStyleBeta = gachaStyle{Path: "gachabeta", Duration: 11}
)
type gachaAPIRequest struct {
+3 -3
View File
@@ -65,11 +65,11 @@ func gachaCommand() modules.Command {
gachaUsage, gachaStyleWish)
}
// gachaBetaCommand trials the toon-shaded beta wish. It is unlisted: anyone
// can run it, but it stays out of the command menu and /help.
// gachaBetaCommand trials the beta version of the wish animation. It is
// unlisted: anyone can run it, but it stays out of the command menu and /help.
func gachaBetaCommand() modules.Command {
return newGachaCommand("gachabeta", modules.VisibilityUnlisted,
"Beta wish: toon sky, comet through a cloud, S/SS/SSS rank; 5* by default, prefix 4* or 3*",
"Gacha (beta version); 5* by default, prefix 4* or 3*",
gachaBetaUsage, gachaStyleBeta)
}
@@ -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 != "8" {
t.Fatalf("duration = %q, want 8", got)
if got := animation.Form["duration"]; got != "11" {
t.Fatalf("duration = %q, want 11", got)
}
}
+2 -2
View File
@@ -1,7 +1,7 @@
// Package random groups the commands that pick one option at random: /random
// (plain text pick), /wheelofnames (wheel GIF when a renderer is configured),
// /gacha (Genshin-style wish MP4), and the unlisted /gachabeta (toon-shaded
// beta wish). The animated commands share the optional wheelofnames renderer
// /gacha (Genshin-style wish MP4), and the unlisted /gachabeta (beta version
// of the gacha wish). The animated commands share the optional wheelofnames renderer
// and fall back to a text reply without it.
package random