forked from Supositware/Haha-Yes
testing something
This commit is contained in:
parent
cbd7ad85e7
commit
69c5cbbc36
2 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue