Moved files

This commit is contained in:
Lukas Wölfer
2025-06-11 23:09:19 +02:00
parent 88f774ae76
commit 65f1a984cf
8 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"tasks": {
"dev": "deno run --watch main.ts"
"dev": "deno run --watch src/main.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@1",

2
run.sh
View File

@@ -1 +1 @@
deno run --env-file=.env --allow-net=dancing.thasky.one:443 -E main.ts
deno run --env-file=.env --allow-net=dancing.thasky.one:443 -E src/main.ts

View File

@@ -1,7 +1,7 @@
import { Mwn, RecentChange } from 'npm:mwn'
import process from "node:process";
import { parseSummary } from "./parse.ts";
import { bucketEvents, writeSections } from "./write.ts";
import { bucketEvents, writeSections } from "./write_descriptions.ts";
async function getWorkshopVideos(bot: Mwn): Promise<string[]> {
const response = await bot.request({
@@ -119,7 +119,8 @@ async function main() {
await watchdog(bot, async (paths) => {
const relevantFiles = await getWorkshopVideos(bot)
const { pages: d, errors: parseErrors } = await fetchPages(relevantFiles, bot)
const t = writeSections(bucketEvents(d))
const bucketedEvents = bucketEvents(d)
const t = writeSections(bucketedEvents)
const trigger_summary = 'Triggered by changes to ' + paths.map(v => `[[${v}]]`).join(", ")
const error_summary = parseErrors.join("\n")

View File

@@ -2,7 +2,6 @@ import { VideoDescription } from "./main.ts";
import { camelToTitleCase } from "./util_string.ts";
export function singleVideoDescription(video: VideoDescription): string {
const teachersList = video.teachers.map(v => "[[" + v + "]]").join(" & ");