Archived
1

Reminders for league. Now just reminders, without attack button

This commit is contained in:
2017-12-23 01:40:36 +04:00
parent a2e70332de
commit 706dc3e944
19 changed files with 381 additions and 117 deletions

View File

@@ -13,6 +13,7 @@ import (
"lab.pztrn.name/fat0troll/i2_bot/lib/orders"
"lab.pztrn.name/fat0troll/i2_bot/lib/pinner"
"lab.pztrn.name/fat0troll/i2_bot/lib/pokedexer"
"lab.pztrn.name/fat0troll/i2_bot/lib/reminder"
"lab.pztrn.name/fat0troll/i2_bot/lib/router"
"lab.pztrn.name/fat0troll/i2_bot/lib/squader"
"lab.pztrn.name/fat0troll/i2_bot/lib/statistics"
@@ -44,6 +45,7 @@ func main() {
users.New(c)
statistics.New(c)
orders.New(c)
reminder.New(c)
c.Log.Info("=======================")
c.Log.Info("= i2_bot initialized. =")
@@ -66,6 +68,8 @@ func main() {
}
} else if update.InlineQuery != nil {
c.Router.RouteInline(&update)
} else if update.CallbackQuery != nil {
c.Router.RouteCallback(&update)
} else if update.ChosenInlineResult != nil {
c.Log.Debug(update.ChosenInlineResult.ResultID)
} else {