mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-01 19:22:14 +00:00
Sleep between posts
This commit is contained in:
parent
7014904aa4
commit
c109f08589
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,7 @@ package nzcovidbot
|
|||
|
||||
import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/dghubble/go-twitter/twitter"
|
||||
"github.com/dghubble/oauth1"
|
||||
|
@ -34,5 +35,8 @@ func postToTwitter() {
|
|||
if err != nil {
|
||||
log.Print(err)
|
||||
}
|
||||
|
||||
// Lets not ratelimit ourselves :upsidedownsmiley:
|
||||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue