From ca3de9cadd1ec1c86d5162a50edcf3e91014fe5f Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Wed, 1 Sep 2021 22:23:02 +1200 Subject: [PATCH] Tidy formatting --- .env.example | 4 +++- README.md | 3 +++ internal/nzcovidbot/csv.go | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index cbebfd9..d1b0b97 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,7 @@ -DISCORD_WEBHOOKS= // Comma Separated! SOURCE_REPO=https://github.com/minhealthnz/nz-covid-data.git // Source repo + +DISCORD_WEBHOOKS= // Comma Separated! + TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= TWITTER_ACCESS_TOKEN= diff --git a/README.md b/README.md index d014c9b..f4fbef0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # NZCovidBot Pull data from Github and parse new locations and fire them off to any configured endpoints +## Config +Copy .env.example to .env and fill in the blanks. + ### Run locally ``` go run cmd/nzcovidbot/*.go diff --git a/internal/nzcovidbot/csv.go b/internal/nzcovidbot/csv.go index 7d87f53..e7be610 100644 --- a/internal/nzcovidbot/csv.go +++ b/internal/nzcovidbot/csv.go @@ -63,7 +63,7 @@ func formatCsvTwitterRow(data string) string { c := make([]string, 0) c = append(c, fields...) endtime := strings.Split(c[5], ", ") - return fmt.Sprintf("New Location: *%s\n%s\n_%s_ - _%s_\n#NZCovidBot", c[1], c[2], c[4], endtime[1]) + return fmt.Sprintf("New Location: *%s*no w\n%s\n_%s_ - _%s_\n#NZCovidBot", c[1], c[2], c[4], endtime[1]) } func getPostableDiscordData() string {