Parsing and running
This commit is contained in:
17
main.ts
17
main.ts
@@ -23,8 +23,21 @@ async function getWorkshopVideos(bot: Mwn): Promise<string[]> {
|
|||||||
console.dir(await bot.parseTitle(files[0]))
|
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({
|
const bot = new Mwn({
|
||||||
apiUrl: 'https://dancing.thasky.one/api.php',
|
apiUrl: 'https://dancing.thasky.one/api.php',
|
||||||
username: process.env.BOTNAME,
|
username: process.env.BOTNAME,
|
||||||
@@ -43,6 +56,6 @@ async function main() {
|
|||||||
} finally {
|
} finally {
|
||||||
await bot.logout();
|
await bot.logout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main();
|
main();
|
||||||
|
|||||||
Reference in New Issue
Block a user