mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix lint
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = class RightStufCommand extends Command {
|
||||
pricelevel: 2,
|
||||
q: query,
|
||||
sort: 'relevance:asc',
|
||||
custitem_rs_adult: msg.channel.nsfw ? true : false
|
||||
custitem_rs_adult: Boolean(msg.channel.nsfw)
|
||||
});
|
||||
if (!body.items.length) return msg.say('Could not find any results.');
|
||||
const data = body.items[0];
|
||||
@@ -68,7 +68,7 @@ module.exports = class RightStufCommand extends Command {
|
||||
|
||||
getImageURL(item) {
|
||||
let found = null;
|
||||
let current = item.itemimages_detail
|
||||
let current = item.itemimages_detail;
|
||||
while (!found) {
|
||||
if (current.primary) found = current.primary.url;
|
||||
if (current.urls) found = current.urls[0].url;
|
||||
|
||||
Reference in New Issue
Block a user