From b183f4608dbe20b1a889c3662fdc1b9a525a90cb Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 8 May 2024 11:33:50 -0400 Subject: [PATCH] Update wikipedia.js --- commands/search/wikipedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index adf74f8f..660048c2 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -61,7 +61,7 @@ module.exports = class WikipediaCommand extends Command { const isDisambig = data.categories.some(category => category.title === 'Category:Disambiguation pages'); if (isDisambig) { fact += '\n'; - fact += data.links.map(link => link.title).join('\n'); + fact += data.links.filter(link => link.ns === 0).map(link => link.title).join('\n'); fact += '\n'; } else { fact += ' ';