This commit is contained in:
shoopea 2020-01-02 23:44:54 +08:00
parent f572046cd8
commit 8fb7262d70

View File

@ -120,6 +120,11 @@ func main() {
if *initdb { if *initdb {
initDB() initDB()
}
initCache()
if *initdb {
_, _ = addObjCastle(`🦌`, `Deerhorn`) _, _ = addObjCastle(`🦌`, `Deerhorn`)
_, _ = addObjCastle(`🐉`, `Dragonscale`) _, _ = addObjCastle(`🐉`, `Dragonscale`)
_, _ = addObjCastle(`🦅`, `Highnest`) _, _ = addObjCastle(`🦅`, `Highnest`)
@ -131,8 +136,6 @@ func main() {
_, _ = addObjGuild(``, `No Guild`) _, _ = addObjGuild(``, `No Guild`)
} }
initCache()
// Registering bot // Registering bot
bot, err := tb.NewBot(tb.Settings{ bot, err := tb.NewBot(tb.Settings{
Token: cfg.Telegram.Token, Token: cfg.Telegram.Token,