mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-02 11:42:15 +00:00
Update twitter logic, formatting
This commit is contained in:
parent
df3c0b9ed4
commit
458b162295
3 changed files with 19 additions and 53 deletions
|
@ -34,27 +34,20 @@ func Lesgoooo() {
|
|||
}
|
||||
|
||||
func postTheUpdates() {
|
||||
// Twitter
|
||||
go postToTwitter()
|
||||
|
||||
// Discord
|
||||
postableDiscordData := getPostableDiscordData()
|
||||
|
||||
if postableDiscordData == "" {
|
||||
return
|
||||
}
|
||||
|
||||
// Not using go routines so we don't get rate limited
|
||||
for _, discordWebhook := range DiscordWebhooks {
|
||||
postToDiscord(discordWebhook, postableDiscordData)
|
||||
}
|
||||
|
||||
// Twitter
|
||||
// postableTwitterData := getPostableTwitterData()
|
||||
// if postableTwitterData == "" {
|
||||
// return
|
||||
// }
|
||||
|
||||
// for _, discordWebhook := range DiscordWebhooks {
|
||||
// postToTwitter(discordWebhook, postableTwitterData)
|
||||
// }
|
||||
|
||||
// Clear out posted data!
|
||||
updatedLocations = UpdatedLocations{}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue