mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-10-05 02:13:50 +00:00
/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.
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 (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(),
|
|
},
|
|
}
|
|
}
|