mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-02 19:52:14 +00:00
Tidy formatting
This commit is contained in:
parent
458b162295
commit
ca3de9cadd
3 changed files with 7 additions and 2 deletions
|
@ -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=
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue