diff --git a/alert/alert.go b/alert/alert.go index aebeb73..9cd6ca2 100644 --- a/alert/alert.go +++ b/alert/alert.go @@ -33,7 +33,7 @@ func Init(alertChan chan api.Availability) { } // define an interval and the ticker for this interval - interval := time.Duration(3) * time.Second + interval := time.Duration(6) * time.Second // create a new Ticker tk := time.NewTicker(interval) diff --git a/bot/bot.go b/bot/bot.go index e21fedb..91d5b60 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -158,7 +158,7 @@ func price(c tele.Context) error { }) if err != nil { log.Warnf("Fail to retrieve availability from tesla website. Error: %s", err.Error()) - return c.Send("Fail to retrieve availability from tesla website :(") + return c.Send("Fail to retrieve availability from tesla website") } var longRange api.Availability @@ -211,7 +211,7 @@ func list(c tele.Context) error { }) if err != nil { log.Warnf("Fail to retrieve availability from tesla website. Error: %s", err.Error()) - return c.Send("Fail to retrieve availability from tesla website :(") + return c.Send("Fail to retrieve availability from tesla website") } availabilitiesStr := fmt.Sprintf("Found *%s* cars\n", availabilities.TotalMatchesFound)