mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04: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.SearchType = CseResource.ListRequest.SearchTypeEnum.Image;
|
||||
req.Start = new NadekoRandom().Next(0, 20);
|
||||
req.Safe = CseResource.ListRequest.SafeEnum.Active;
|
||||
|
||||
var search = await req.ExecuteAsync();
|
||||
|
||||
|
Reference in New Issue
Block a user