Files
miti99bot/internal/modules/random/random.go
T
tiennm99 53f387c576 feat(random): add an unlisted /genshin meteor wish command
/genshin takes the same input as /gacha and sends the Genshin-style
meteor wish that wheelofnames serves on /api/genshin, as a 7-second
640x360 MP4. It stays out of the command menu and /help.
2026-10-01 23:38:21 +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 (card-pack wish MP4), and the unlisted /genshin (Genshin-style meteor
// wish MP4). 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(),
genshinCommand(),
},
}
}