This commit is contained in:
shoopea 2019-06-02 21:33:37 +08:00
parent 4c871267ab
commit ec719c504b

10
main.go
View File

@ -95,19 +95,23 @@ func main() {
_, _ = addObjCastle(`🐺`, `Wolfpack`)
_, _ = addObjGuild(``, `No Guild`)
}
resetMsgParsingRules()
resetObjItem()
resetMsgParsingRules()
msgParsingRules, err = loadMsgParsingRules()
logOnError(err, "Message parsing rules")
err = loadObjCastle()
logOnError(err, "Caching castles")
err = loadObjGuild()
logOnError(err, "Caching guilds")
err = loadObjUser()
logOnError(err, "Caching user")
err = loadObjItem()
logOnError(err, "Caching user")
logOnError(err, "Caching items")
resetObjItem()
// Registering bot
b, err := tb.NewBot(tb.Settings{