mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 10:57:08 +02:00
Safe Search?
This commit is contained in:
@@ -29,6 +29,7 @@ module.exports = class FlickrCommand extends Command {
|
|||||||
method: 'flickr.photos.search',
|
method: 'flickr.photos.search',
|
||||||
text: query,
|
text: query,
|
||||||
sort: 'relevance',
|
sort: 'relevance',
|
||||||
|
safe_search: msg.channel.nsfw ? 3 : 1,
|
||||||
nojsoncallback: true
|
nojsoncallback: true
|
||||||
});
|
});
|
||||||
if (!body.photos.photo.length) return msg.say('Could not find any results.');
|
if (!body.photos.photo.length) return msg.say('Could not find any results.');
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "39.1.0",
|
"version": "39.1.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user