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
|
// Create new graphicsmagick instance
|
||||||
fetch(url)
|
fetch(url)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}`);
|
const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}.png`);
|
||||||
res.body.pipe(dest);
|
res.body.pipe(dest);
|
||||||
dest.on('finish', async () => {
|
dest.on('finish', async () => {
|
||||||
|
|
||||||
let img = gm(`${os.tmpdir()}/${message.id}`);
|
let img = gm(`${os.tmpdir()}/${message.id}.png`);
|
||||||
|
|
||||||
// Set some defaults
|
// Set some defaults
|
||||||
const TOP_TEXT = options[0];
|
const TOP_TEXT = options[0];
|
||||||
|
|
|
@ -77,11 +77,11 @@ class posterCommand extends Command {
|
||||||
// Create new graphicsmagick instance
|
// Create new graphicsmagick instance
|
||||||
fetch(url)
|
fetch(url)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}`);
|
const dest = fs.createWriteStream(`${os.tmpdir()}/${message.id}.png`);
|
||||||
res.body.pipe(dest);
|
res.body.pipe(dest);
|
||||||
dest.on('finish', async () => {
|
dest.on('finish', async () => {
|
||||||
|
|
||||||
let img = gm(`${os.tmpdir()}/${message.id}`);
|
let img = gm(`${os.tmpdir()}/${message.id}.png`);
|
||||||
|
|
||||||
// Set some defaults
|
// Set some defaults
|
||||||
const TOP_TEXT = options[0];
|
const TOP_TEXT = options[0];
|
||||||
|
|
Loading…
Reference in a new issue