Update twitter logic, formatting

This commit is contained in:
Daniel Mason 2021-09-01 21:49:10 +12:00
parent df3c0b9ed4
commit 458b162295
Signed by: idanoo
GPG key ID: 387387CDBC02F132
3 changed files with 19 additions and 53 deletions

View file

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