1
0
Fork 0

testing something

akairo
loicbersier 4 years ago
parent cbd7ad85e7
commit 69c5cbbc36

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

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

Loading…
Cancel
Save