mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-12 16:15:33 +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
595 B
Go
21 lines
595 B
Go
// Package util implements /info, /help, /stickerid — the framework-validating
|
|
// "always on" module. /help is a pure renderer over the registry; the other
|
|
// two are debug helpers.
|
|
package util
|
|
|
|
import (
|
|
"github.com/tiennm99/tiennm99bot/internal/modules"
|
|
)
|
|
|
|
// New is the module Factory. /help closes over deps.Registry so it renders
|
|
// the fully built registry at call time; the other handlers need no Deps.
|
|
func New(deps modules.Deps) modules.Module {
|
|
return modules.Module{
|
|
Commands: []modules.Command{
|
|
infoCommand(),
|
|
helpCommand(deps.Registry),
|
|
stickerIDCommand(),
|
|
},
|
|
}
|
|
}
|