Files
miti99bot/internal/modules/util/util.go
T
tiennm99 cf620a257e docs: fix stale code comments and add missing package docs
Correct comments that described the retired webhook transport, a removed
/cron route, the old KV store and wrapper types, and behaviour that has since
changed; drop plan and review labels; reword two startup log lines that
overstated or misnamed what they report.
2026-09-30 14:19:01 +07:00

21 lines
593 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/miti99bot/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(),
},
}
}