Parsing and running

This commit is contained in:
Lukas Wölfer
2025-05-05 16:37:54 +02:00
parent 64979dfd18
commit 81ae6c81b4
2 changed files with 34 additions and 20 deletions

17
main.ts
View File

@@ -23,8 +23,21 @@ async function getWorkshopVideos(bot: Mwn): Promise<string[]> {
console.dir(await bot.parseTitle(files[0]))
}
interface VideoDescription {
teachers: string[]
location: string
level: string
date: string
patterns: string
notes: string
}
async function main() {
function parseSummary(description: string): VideoDescription {
}
async function main() {
const bot = new Mwn({
apiUrl: 'https://dancing.thasky.one/api.php',
username: process.env.BOTNAME,
@@ -43,6 +56,6 @@ async function main() {
} finally {
await bot.logout();
}
}
}
main();

1
run.sh Normal file
View File

@@ -0,0 +1 @@
deno run --env-file=.env --deny-read --allow-net=dancing.thasky.one:443 -E main.ts