23 lines
474 B
Go
23 lines
474 B
Go
// Fantasy World Zookeeper Helper Bot
|
|
// Copyright (c) 2018-2019 Vladimir "fat0troll" Hodakov
|
|
|
|
package announcesv1
|
|
|
|
import (
|
|
"github.com/rs/zerolog"
|
|
"source.hodakov.me/fat0troll/fwzookeeper_helper/context"
|
|
)
|
|
|
|
var (
|
|
c *context.Context
|
|
log zerolog.Logger
|
|
)
|
|
|
|
// New initializes package
|
|
func New(cc *context.Context) {
|
|
c = cc
|
|
log = c.Logger.With().Str("domain", "announces").Int("version", 1).Logger()
|
|
|
|
log.Info().Msg("Adding announces handler to Telegram instance")
|
|
}
|