diff --git a/cmd/bot/main.go b/cmd/bot/main.go index b29b57a..a4da95c 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -43,6 +43,36 @@ func main() { }, }, Commands: []*cli.Command{ + { + Name: "birthdays", + Description: "Birthday management", + Commands: []*cli.Command{ + { + Name: "weekly", + Description: "Lists the weekly birthdays for this week.", + Action: cmdHost.Birthdays().ListWeeklyBirthdays, + Flags: []cli.Flag{ + &cli.Int64Flag{ + Name: "chatid", + Aliases: []string{"c"}, + Usage: "Specifies the chat ID. Required.", + }, + }, + }, + { + Name: "today", + Description: "Lists birthdays for today.", + Action: cmdHost.Birthdays().ListTodaysBirthdays, + Flags: []cli.Flag{ + &cli.Int64Flag{ + Name: "chatid", + Aliases: []string{"c"}, + Usage: "Specifies the chat ID. Required.", + }, + }, + }, + }, + }, { Name: "chats", Description: "Chats management",