Archived
1
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
fwzookeeper/domains/commands/v1/exported.go

27 lines
603 B
Go
Raw Normal View History

// Fantasy World Zookeeper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package commandsv1
import (
"github.com/rs/zerolog"
"lab.wtfteam.pro/fat0troll/fw_zookeeper/context"
"lab.wtfteam.pro/fat0troll/fw_zookeeper/internal/router"
)
var (
c *context.Context
log zerolog.Logger
)
// New initializes package
func New(cc *context.Context) {
c = cc
log = c.Logger.With().Str("domain", "commands").Int("version", 1).Logger()
router.RegisterPrivateCommand("start", StartCommand)
router.RegisterPrivateCommand("help", HelpCommand)
log.Info().Msg("Domain «commands» initialized")
}