mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 03:13:46 +00:00
BREAKING CHANGE: the Go module path is now github.com/tiennm99/tiennm99bot, the default sticker pack is stickers_by_<bot username>, and the health body, deploy DM, User-Agents and image names say tiennm99bot.
21 lines
699 B
Go
21 lines
699 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 renderer service and
|
|
// fall back to a text reply without it.
|
|
package random
|
|
|
|
import "github.com/tiennm99/tiennm99bot/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(),
|
|
},
|
|
}
|
|
}
|