mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Safe Search?
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "39.1.0",
|
||||
"version": "39.1.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user