Files
tiennm99bot/internal/modules/random/random.go
T
tiennm99 11f458fee5 feat(random): group the random pickers into a random module and add /gachabeta
/random, /wheelofnames, and /gacha move from misc into a new random module
with unchanged command names, so usage stats carry over. The new unlisted
/gachabeta takes the same input as /gacha and renders the toon-shaded beta
wish from /api/gachabeta on the same service, with the same text fallback.
2026-10-01 15:17:11 +07:00

21 lines
702 B
Go

// 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
// and fall back to a text reply without it.
package random
import "github.com/tiennm99/miti99bot/internal/modules"
// New is the module Factory. The commands keep no state, so deps is unused.
func New(_ modules.Deps) modules.Module {
return modules.Module{
Commands: []modules.Command{
randomCommand(),
wheelOfNamesCommand(),
gachaCommand(),
gachaBetaCommand(),
},
}
}