Fix tv show

This commit is contained in:
Dragon Fire
2020-01-26 16:38:19 -05:00
parent 532e3f7c56
commit bb9f27fbe5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = class TvShowCommand extends Command {
});
if (!search.body.results.length) return msg.say('Could not find any results.');
const find = search.body.results.find(
m => m.title.toLowerCase() === query.toLowerCase()
m => m.name.toLowerCase() === query.toLowerCase()
) || search.body.results[0];
const { body } = await request
.get(`https://api.themoviedb.org/3/tv/${find.id}`)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "110.1.3",
"version": "110.1.4",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {