mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class MovieCommand extends Command {
|
||||
if (!search.body.results.length) return msg.say('Could not find any results.');
|
||||
let find = search.body.results.find(m => m.title.toLowerCase() === query.toLowerCase())
|
||||
|| search.body.results[0];
|
||||
if (search.body.results > 1) {
|
||||
if (search.body.results.length > 1) {
|
||||
const resultListFunc = (movie, i) => `**${i + 1}.** ${movie.title} (${movie.release_date || 'TBA'})`;
|
||||
find = await pickWhenMany(msg, search.body.results, find, resultListFunc);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ module.exports = class TvShowCommand extends Command {
|
||||
if (!search.body.results.length) return msg.say('Could not find any results.');
|
||||
let find = search.body.results.find(m => m.name.toLowerCase() === query.toLowerCase())
|
||||
|| search.body.results[0];
|
||||
if (search.body.results > 1) {
|
||||
if (search.body.results.length > 1) {
|
||||
const resultListFunc = (show, i) => `**${i + 1}.** ${show.name} (${show.first_air_date || 'TBA'})`;
|
||||
find = await pickWhenMany(msg, search.body.results, find, resultListFunc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user