Disable SafeSearch in NSFW channels

This commit is contained in:
Lamp 2018-08-25 23:42:28 -07:00 committed by GitHub
parent bed7a8de5a
commit 699ce515c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,7 +49,7 @@
break;
case "google-images":
case "gi":
pup(msg, `https://www.google.com/search?q=${encodeURIComponent(query)}&tbm=isch&safe=active`);
pup(msg, `https://www.google.com/search?q=${encodeURIComponent(query)}&tbm=isch${msg.channel.nsfw ? '' : '&safe=active'}`);
break;
case "bing":
case "b":