fix(forbidden): Lower ticker to avoid server forbidden
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matthieu 'JP' DERASSE 2023-07-20 18:23:11 +00:00
parent 452b7336c2
commit 0825774d36
Signed by: mderasse
GPG Key ID: 55141C777B16A705
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)