testing something

This commit is contained in:
loicbersier 2020-02-21 21:16:51 +01:00
parent cbd7ad85e7
commit 69c5cbbc36
2 changed files with 4 additions and 4 deletions

View file

@ -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];

View file

@ -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];