mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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')
|
||||
.query({
|
||||
api_key: TMDB_KEY,
|
||||
include_adult: msg.channel.nsfw ? true : false,
|
||||
include_adult: msg.channel.nsfw,
|
||||
query
|
||||
});
|
||||
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')
|
||||
.query({
|
||||
api_key: TMDB_KEY,
|
||||
include_adult: msg.channel.nsfw ? true : false,
|
||||
include_adult: msg.channel.nsfw,
|
||||
query
|
||||
});
|
||||
if (!search.body.results.length) return msg.say('No Results.');
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "30.7.0",
|
||||
"version": "30.7.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user