From 69c5cbbc360b21b133f9a4f52c8fd48302e6752d Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 21 Feb 2020 21:16:51 +0100 Subject: [PATCH] testing something --- commands/images/meme.js | 4 ++-- commands/images/poster.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/images/meme.js b/commands/images/meme.js index d85dadd..e27bcf6 100644 --- a/commands/images/meme.js +++ b/commands/images/meme.js @@ -60,11 +60,11 @@ class memeCommand extends Command { // Create new graphicsmagick instance fetch(url) .then(res => { - const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}`); + const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}.png`); res.body.pipe(dest); dest.on('finish', async () => { - let img = gm(`${os.tmpdir()}/${message.id}`); + let img = gm(`${os.tmpdir()}/${message.id}.png`); // Set some defaults const TOP_TEXT = options[0]; diff --git a/commands/images/poster.js b/commands/images/poster.js index 5964cf9..50cd149 100644 --- a/commands/images/poster.js +++ b/commands/images/poster.js @@ -77,11 +77,11 @@ class posterCommand extends Command { // Create new graphicsmagick instance fetch(url) .then(res => { - const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}`); + const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}.png`); res.body.pipe(dest); dest.on('finish', async () => { - let img = gm(`${os.tmpdir()}/${message.id}`); + let img = gm(`${os.tmpdir()}/${message.id}.png`); // Set some defaults const TOP_TEXT = options[0];