Split based on location

This commit is contained in:
Daniel Mason 2022-01-03 10:55:54 +13:00
parent 83b1a3d974
commit aeae0ef8ee
6 changed files with 129 additions and 67 deletions

View file

@ -1,5 +1,6 @@
# NZCovidBot
Pulls data from Ministry of Health API and parse into Discord and Slack webhooks.
### About
After the twitterbot @nzcovidlocs shut down, I decided to try a different approach, instead of scraping MoH's website, we originally parsed the raw CSV data.
Since then the NZ Ministry of Health have released an API containing this data now. We are now using this https://api.integration.covid19.health.nz/locations/v1/current-locations-of-interest
@ -16,4 +17,7 @@ Copy .env.example to .env and fill in the webhook URLs
```
go build -o nzcovidbot cmd/nzcovidbot/*.go
./nzcovidbot
sudo cp nzcovidbot.service /etc/systemd/system/nzcovidbot.service
# Update user + location of repo in systemd file
sudo systemctl daemon-reload && systemctl enable --now nzcovidbot.service
```