Skip to content

Commit d704276

Browse files
committedOct 13, 2015
limit number of return results. prolly will be quicker heh
1 parent ec11f50 commit d704276

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎discord_bot.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,12 @@ bot.on("presence", function(data) {
436436
});
437437

438438
function get_gif(tags, func) {
439+
//limit=1 will only return 1 gif
439440
var params = {
440441
"api_key": config.api_key,
441442
"rating": config.rating,
442-
"format": "json"
443+
"format": "json",
444+
"limit": 1
443445
};
444446
var query = qs.stringify(params);
445447

0 commit comments

Comments
 (0)