updated status and page selection

This commit is contained in:
Andrew Woodlee 2022-09-29 13:58:42 -05:00
parent 33b45e57cb
commit cf9c7c6561

View File

@ -49,11 +49,11 @@ func architectureBot() {
ps, err := cli.PhotoService.Search(context.Background(), &pexels.PhotoParams{
Query: query,
PerPage: 80,
Page: rand.Intn(100),
})
if err != nil {
log.Fatal(err)
}
ps.Page = rand.Intn(100)
photoIndex := rand.Intn(79)
photo := ps.Photos[photoIndex]
@ -76,7 +76,7 @@ func architectureBot() {
// fmt.Println("Original SRC URL: ", photoURL)
post := "Taken from " + photo.URL + "\n" + hashtagString
post := hashtagString + "\n" + photo.URL
domain := "https://" + viper.GetString("domain")
if !viper.IsSet("NCD.ClientID") {