We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2366e6e commit 6e0736eCopy full SHA for 6e0736e
src/minecraft.mts
@@ -83,7 +83,10 @@ bot.on('spawn', async () => {
83
const firstPage = JSON.parse(pages[0]).text as string;
84
const idx = firstPage.indexOf('\n');
85
const version = firstPage.substring(0, idx).trim();
86
- const source = firstPage.substring(idx).trim();
+ const source = pages.slice(1).reduce((s, page) => {
87
+ s += '\n' + (JSON.parse(page).text as string).trim();
88
+ return s;
89
+ }, firstPage.substring(idx).trim());
90
91
const pkg = {
92
name: book.title.value,
0 commit comments