mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-03 04:02:14 +00:00
1.4 - Telegram support
This commit is contained in:
parent
07d0e82dff
commit
6e1c259d9e
10 changed files with 139 additions and 5 deletions
|
@ -57,7 +57,7 @@ func fetchAPILocations() (ApiResponse, error) {
|
|||
}
|
||||
|
||||
// Set user-agent info
|
||||
req.Header.Set("User-Agent", "NZCovidBot/1.3 (https://m2.nz)")
|
||||
req.Header.Set("User-Agent", "NZCovidBot/1.4 (https://m2.nz)")
|
||||
|
||||
// Fire off the request
|
||||
resp, err := client.Do(req)
|
||||
|
@ -123,7 +123,6 @@ func getNewAPILocations() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Make sure to clear out the previous list and append new data in a map based on location
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue