Tidy formatting

This commit is contained in:
Daniel Mason 2021-09-01 22:23:02 +12:00
parent 458b162295
commit ca3de9cadd
Signed by: idanoo
GPG key ID: 387387CDBC02F132
3 changed files with 7 additions and 2 deletions

View file

@ -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=

View file

@ -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

View file

@ -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 {