Fixed stuff

This commit is contained in:
2025-11-11 22:42:14 +01:00
parent e3218af147
commit ec9f14c9e7
4 changed files with 20 additions and 5 deletions

View File

@@ -8,9 +8,15 @@ const name = "Aude Vaiselle";
try{
const creator = new NameCardCreator(templatePath);
const result = await launchWorker({
templatePath: data.nameCardTemplate,
avatarURL: avatarPath,
username: name,
});
const buffer = Buffer.from(result.result);
console.log(buffer);
await creator.getWelcomeCard(avatarPath, name);
console.log("Generation successful ✅")
} catch (error) {
console.log(error);