From f6c58e1ba734da5106917df0fbb65ef5b577a364 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 8 May 2024 01:20:49 -0400 Subject: [PATCH] Fix --- commands/search/wikipedia.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index b6654242..adf74f8f 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -39,13 +39,14 @@ module.exports = class WikipediaCommand extends Command { exintro: '', explaintext: '', pllimit: 15, - piprop: 'original', + piprop: 'thumbnail', + pithumbsize: 1000, redirects: '', formatversion: 2 }); const data = body.query.pages[0]; if (data.missing) return msg.say('Could not find any results.'); - let thumbnail = data.original ? data.original.source : null; + let thumbnail = data.thumbnail ? data.thumbnail.source : null; if (!msg.channel.nsfw && thumbnail) { const img = await request.get(thumbnail); const nsfw = await this.client.tensorflow.isImageNSFW(img.body);