mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 12:28:54 +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
630 B
Go
21 lines
630 B
Go
// Package amlich converts dates between dương lịch (the Gregorian calendar)
|
|
// and the Vietnamese âm lịch (lunisolar calendar): /amlich and /duonglich.
|
|
// Conversions are pure calendar math computed at UTC+7 — the offset the
|
|
// Vietnamese calendar is defined against.
|
|
package amlich
|
|
|
|
import (
|
|
"github.com/tiennm99/tiennm99bot/internal/modules"
|
|
)
|
|
|
|
// New is the module Factory. The module is stateless — pure calendar math with
|
|
// no store access — so Deps is unused.
|
|
func New(modules.Deps) modules.Module {
|
|
return modules.Module{
|
|
Commands: []modules.Command{
|
|
amlichCommand(),
|
|
duonglichCommand(),
|
|
},
|
|
}
|
|
}
|