mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 18:39:35 +02:00
Fix tv show
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "110.1.3",
|
||||
"version": "110.1.4",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user