mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Added safesearch to .img when using google (thx to ZeroNyan)
This commit is contained in:
		@@ -341,6 +341,7 @@ public class GoogleApiService : IGoogleApiService, INService
 | 
				
			|||||||
        req.Fields = "items(image(contextLink,thumbnailLink),link)";
 | 
					        req.Fields = "items(image(contextLink,thumbnailLink),link)";
 | 
				
			||||||
        req.SearchType = CseResource.ListRequest.SearchTypeEnum.Image;
 | 
					        req.SearchType = CseResource.ListRequest.SearchTypeEnum.Image;
 | 
				
			||||||
        req.Start = new NadekoRandom().Next(0, 20);
 | 
					        req.Start = new NadekoRandom().Next(0, 20);
 | 
				
			||||||
 | 
					        req.Safe = CseResource.ListRequest.SafeEnum.Active;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        var search = await req.ExecuteAsync();
 | 
					        var search = await req.ExecuteAsync();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user