updated status hashtag to be what was searched for
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,4 @@ | |||||||
| build | build | ||||||
| images | images | ||||||
| *.yaml | *.yaml | ||||||
|  | deploy | ||||||
							
								
								
									
										8
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.go
									
									
									
									
									
								
							| @@ -57,6 +57,12 @@ func architectureBot() { | |||||||
| 	photoIndex := rand.Intn(79) | 	photoIndex := rand.Intn(79) | ||||||
| 	photo := ps.Photos[photoIndex] | 	photo := ps.Photos[photoIndex] | ||||||
|  |  | ||||||
|  | 	hashtagString := "#" | ||||||
|  | 	hashtagArr := strings.Split(query, " ") | ||||||
|  | 	for _, v := range hashtagArr { | ||||||
|  | 		hashtagString += v | ||||||
|  | 	} | ||||||
|  | 	fmt.Println(hashtagString) | ||||||
| 	// fmt.Println("Source Medium URL:", ps.Photos[0].Src.Medium) | 	// fmt.Println("Source Medium URL:", ps.Photos[0].Src.Medium) | ||||||
| 	photoURL := photo.Src.Original | 	photoURL := photo.Src.Original | ||||||
| 	mime := strings.Split(photoURL, "/") | 	mime := strings.Split(photoURL, "/") | ||||||
| @@ -70,7 +76,7 @@ func architectureBot() { | |||||||
|  |  | ||||||
| 	// fmt.Println("Original SRC URL: ", photoURL) | 	// fmt.Println("Original SRC URL: ", photoURL) | ||||||
|  |  | ||||||
| 	post := "Taken from " + photo.URL + "\n#neoclassical" | 	post := "Taken from " + photo.URL + "\n" + hashtagString | ||||||
|  |  | ||||||
| 	domain := "https://" + viper.GetString("domain") | 	domain := "https://" + viper.GetString("domain") | ||||||
| 	if !viper.IsSet("NCD.ClientID") { | 	if !viper.IsSet("NCD.ClientID") { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andrew W
					Andrew W