add deliveries

This commit is contained in:
shoopea
2021-12-12 14:31:43 +08:00
parent f21a8e5736
commit 86f29143fa
3 changed files with 97 additions and 4 deletions

2
bot.go
View File

@@ -104,6 +104,7 @@ func (b *Bot) BotHandlers() {
b.bot.Handle("/value", botGraphValue)
b.bot.Handle("/value_delta", botGraphValueDelta)
b.bot.Handle("/deliveries", botGraphDeliveries)
b.bot.Handle("/money", botGraphMoney)
b.bot.Handle("/income", botGraphIncome)
b.bot.Handle("/loan", botGraphLoan)
@@ -149,6 +150,7 @@ func botHelp(m *tb.Message) {
msg = fmt.Sprintf("%s/offline - set player offline\r\n", msg)
msg = fmt.Sprintf("%s/value - value graph\r\n", msg)
msg = fmt.Sprintf("%s/value_delta - delta value graph\r\n", msg)
msg = fmt.Sprintf("%s/deliveries - deliveries graph\r\n", msg)
msg = fmt.Sprintf("%s/money - money graph\r\n", msg)
msg = fmt.Sprintf("%s/income - income graph\r\n", msg)
msg = fmt.Sprintf("%s/loan - loan graph\r\n", msg)