updated status and page selection

master
Andrew Woodlee 2 years ago
parent 33b45e57cb
commit cf9c7c6561

@ -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") {

Loading…
Cancel
Save