mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +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.');
|
||||
|
||||
Reference in New Issue
Block a user