Fixed title casing

This commit is contained in:
Lukas Wölfer
2025-06-05 23:25:27 +02:00
parent 86246a613e
commit 88f774ae76
5 changed files with 73 additions and 59 deletions

View File

@@ -120,9 +120,11 @@ async function main() {
const relevantFiles = await getWorkshopVideos(bot)
const { pages: d, errors: parseErrors } = await fetchPages(relevantFiles, bot)
const t = writeSections(bucketEvents(d))
const trigger_summary = 'Triggered by changes to ' + paths.map(v => `[[${v}]]`).join(", ")
const error_summary = parseErrors.join("\n")
const summary = [trigger_summary, error_summary].filter(v => v !== undefined && v.length > 0).join("\n")
const response = await bot.save(title, "{{TOC|limit=3}}\n\n" + t, summary);
console.log(response)
})