No description
Find a file
2022-01-02 12:19:02 +13:00
cmd/nzcovidbot Rework to use API instead of CSVs 2022-01-02 12:19:02 +13:00
internal/nzcovidbot Rework to use API instead of CSVs 2022-01-02 12:19:02 +13:00
.env.example Rework to use API instead of CSVs 2022-01-02 12:19:02 +13:00
.gitignore Rework to use API instead of CSVs 2022-01-02 12:19:02 +13:00
go.mod Rework to use API instead of CSVs 2022-01-02 12:19:02 +13:00
go.sum Rework to use API instead of CSVs 2022-01-02 12:19:02 +13:00
LICENSE Initial commit 2021-09-01 17:37:22 +12:00
README.md Rework to use API instead of CSVs 2022-01-02 12:19:02 +13:00

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

Config

Copy .env.example to .env and fill in the webhook URLs

Run locally

    go run cmd/nzcovidbot/*.go

Build

    go build -o nzcovidbot cmd/nzcovidbot/*.go
    ./nzcovidbot