mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 00:12:32 +02:00
No Uneeded Ternary
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = class MovieCommand extends Command {
|
|||||||
.get('http://api.themoviedb.org/3/search/movie')
|
.get('http://api.themoviedb.org/3/search/movie')
|
||||||
.query({
|
.query({
|
||||||
api_key: TMDB_KEY,
|
api_key: TMDB_KEY,
|
||||||
include_adult: msg.channel.nsfw ? true : false,
|
include_adult: msg.channel.nsfw,
|
||||||
query
|
query
|
||||||
});
|
});
|
||||||
if (!search.body.results.length) return msg.say('No Results.');
|
if (!search.body.results.length) return msg.say('No Results.');
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ module.exports = class TVShowCommand extends Command {
|
|||||||
.get('http://api.themoviedb.org/3/search/tv')
|
.get('http://api.themoviedb.org/3/search/tv')
|
||||||
.query({
|
.query({
|
||||||
api_key: TMDB_KEY,
|
api_key: TMDB_KEY,
|
||||||
include_adult: msg.channel.nsfw ? true : false,
|
include_adult: msg.channel.nsfw,
|
||||||
query
|
query
|
||||||
});
|
});
|
||||||
if (!search.body.results.length) return msg.say('No Results.');
|
if (!search.body.results.length) return msg.say('No Results.');
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "30.7.0",
|
"version": "30.7.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user