mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-13 10:16:05 +00:00
/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.
21 lines
702 B
Go
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(),
|
|
},
|
|
}
|
|
}
|