mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 15:19:14 +02:00
Sort by relevance
This commit is contained in:
@@ -28,6 +28,7 @@ module.exports = class FlickrCommand extends Command {
|
|||||||
format: 'json',
|
format: 'json',
|
||||||
method: 'flickr.photos.search',
|
method: 'flickr.photos.search',
|
||||||
text: query,
|
text: query,
|
||||||
|
sort: 'relevance',
|
||||||
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.');
|
||||||
|
|||||||
Reference in New Issue
Block a user