diff --git a/src/BaseCommand.ts b/src/BaseCommand.ts index 7346a89..1718a2f 100644 --- a/src/BaseCommand.ts +++ b/src/BaseCommand.ts @@ -104,13 +104,14 @@ export default class BaseCommand { video, } = event; - if(!url) { - throw new Error("No url specified"); + if (url) { + console.log(`Received URL: ${url}`); + } else if (content) { + console.log(`Setting content ${content.split("\n")[0]} ... `); + } else { + throw new Error("No url or content specified"); } - - console.log(`Received URL: ${url}`); - const { page } = await this.createPage({ mobile, width,