fix(forbidden): Lower ticker to avoid server forbidden
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -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)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user