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