Safe Search?

This commit is contained in:
Daniel Odendahl Jr
2017-09-16 02:41:09 +00:00
parent 643fae4e83
commit 3e8a7a4cb7
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -29,6 +29,7 @@ module.exports = class FlickrCommand extends Command {
method: 'flickr.photos.search',
text: query,
sort: 'relevance',
safe_search: msg.channel.nsfw ? 3 : 1,
nojsoncallback: true
});
if (!body.photos.photo.length) return msg.say('Could not find any results.');
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "39.1.0",
"version": "39.1.1",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {