From 3e8a7a4cb7e8efeb7cb13e4074ead7865eba8db8 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 16 Sep 2017 02:41:09 +0000 Subject: [PATCH] Safe Search? --- commands/search/flickr.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/search/flickr.js b/commands/search/flickr.js index 0cc3c14c..2f9ade8f 100644 --- a/commands/search/flickr.js +++ b/commands/search/flickr.js @@ -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.'); diff --git a/package.json b/package.json index 331fabcb..f76069d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "39.1.0", + "version": "39.1.1", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {