updated status and page selection
This commit is contained in:
parent
33b45e57cb
commit
cf9c7c6561
4
main.go
4
main.go
@ -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…
Reference in New Issue
Block a user