upd
This commit is contained in:
parent
daa659e7a4
commit
62e2698ea5
4
main.go
4
main.go
@ -136,6 +136,10 @@ func main() {
|
||||
_, _ = addObjGuild(``, `No Guild`)
|
||||
}
|
||||
|
||||
log.Println("Caching castles ..")
|
||||
err = loadObjCastle()
|
||||
logOnError(err, "initCache : caching castles")
|
||||
|
||||
// Registering bot
|
||||
bot, err := tb.NewBot(tb.Settings{
|
||||
Token: cfg.Telegram.Token,
|
||||
|
4
obj.go
4
obj.go
@ -42,10 +42,6 @@ func initCache() {
|
||||
msgParsingRules, err = loadMsgParsingRules()
|
||||
logOnError(err, "initCache : message parsing rules")
|
||||
|
||||
log.Println("Caching castles ..")
|
||||
err = loadObjCastle()
|
||||
logOnError(err, "initCache : caching castles")
|
||||
|
||||
log.Println("Caching guilds ..")
|
||||
err = loadObjGuild()
|
||||
logOnError(err, "initCache : caching guilds")
|
||||
|
Loading…
Reference in New Issue
Block a user