This commit is contained in:
Dragon Fire
2024-05-08 01:16:42 -04:00
parent 3285d6f68e
commit 1f89be6bcc
+2 -1
View File
@@ -38,7 +38,7 @@ module.exports = class WikipediaCommand extends Command {
titles: query,
exintro: '',
explaintext: '',
pllimit: 20,
pllimit: 15,
piprop: 'original',
redirects: '',
formatversion: 2
@@ -59,6 +59,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 += '\n';
} else {