From 2f4caf0e72431de207f9b3cf5cf26ca7535981d1 Mon Sep 17 00:00:00 2001 From: Supositware Date: Tue, 4 Apr 2023 16:18:07 +0000 Subject: [PATCH] fix stupid mistake --- commands/AI/img2img.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/AI/img2img.js b/commands/AI/img2img.js index 9fdea40..cff78c3 100644 --- a/commands/AI/img2img.js +++ b/commands/AI/img2img.js @@ -35,7 +35,7 @@ export default { if (!res.ok) return interaction.editReply('An error has occured while trying to download your image.'); await streamPipeline(res.body, fs.createWriteStream(`${os.tmpdir()}/${args.image.name}.webp`)); - const b64Image = fs.readFileSync(`${os.tmpdir()}/${args.image.name}`, { encoding: 'base64' }); + const b64Image = fs.readFileSync(`${os.tmpdir()}/${args.image.name}.webp`, { encoding: 'base64' }); generate(interaction, args.prompt, client, b64Image); }, };