From 0fb57f72435c93311f7cced5eaf371edb05167be Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 26 Jul 2020 13:53:36 +0200 Subject: [PATCH] Add the message author Signed-off-by: loicbersier --- commands/fun/curses.js | 2 +- commands/fun/vidshittyfier.js | 2 +- commands/utility/gif2vid.js | 2 +- commands/utility/vid2gif.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/fun/curses.js b/commands/fun/curses.js index df93f6b0..c36f5752 100644 --- a/commands/fun/curses.js +++ b/commands/fun/curses.js @@ -69,7 +69,7 @@ class cursesCommand extends Command { } fs.writeFileSync(`${os.tmpdir()}/cursed${message.id}${ext}`, Buffer.from(endResult, 'hex')); - return message.channel.send({files: [`${os.tmpdir()}/cursed${message.id}${ext}`]}) + return message.channel.send(`Cursed by ${message.author}`, {files: [`${os.tmpdir()}/cursed${message.id}${ext}`]}) .catch(err => { console.error(err); return message.channel.send('Video is too big! try again with something smaller'); diff --git a/commands/fun/vidshittyfier.js b/commands/fun/vidshittyfier.js index 0c07a551..29aa37bb 100644 --- a/commands/fun/vidshittyfier.js +++ b/commands/fun/vidshittyfier.js @@ -85,7 +85,7 @@ class vidshittyfierCommand extends Command { ffmpegCommand.on('end', () => { loadingmsg.delete(); message.delete(); - return message.channel.send({files: [output2]}) + return message.channel.send(`Shittyfied by ${message.author}`, {files: [output2]}) .catch(err => { console.error(err); return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`); diff --git a/commands/utility/gif2vid.js b/commands/utility/gif2vid.js index 12a234e1..2eb5338e 100644 --- a/commands/utility/gif2vid.js +++ b/commands/utility/gif2vid.js @@ -57,7 +57,7 @@ class gif2vidCommand extends Command { ffmpegCommand.on('end', () => { loadingmsg.delete(); message.delete(); - return message.channel.send({files: [`${os.tmpdir()}/${message.id}g2v.mp4`]}) + return message.channel.send(`Converted by ${message.author}`, {files: [`${os.tmpdir()}/${message.id}g2v.mp4`]}) .catch(err => { console.error(err); return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`); diff --git a/commands/utility/vid2gif.js b/commands/utility/vid2gif.js index a22b60f9..7a91d88f 100644 --- a/commands/utility/vid2gif.js +++ b/commands/utility/vid2gif.js @@ -63,7 +63,7 @@ class vid2gifCommand extends Command { ffmpegCommand.on('end', () => { loadingmsg.delete(); message.delete(); - return message.channel.send({files: [`${os.tmpdir()}/${message.id}v2g.gif`]}) + return message.channel.send(`Converted by ${message.author}`, {files: [`${os.tmpdir()}/${message.id}v2g.gif`]}) .catch(err => { console.error(err); return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);