Disable SafeSearch in NSFW channels
This commit is contained in:
parent
bed7a8de5a
commit
699ce515c9
2
index.js
2
index.js
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user